Answer Posted / aashish r. wadhokar
no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.
yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What is war file?
What do you mean by default initialization in java servlet?
Is java servlet still used?
What are the servlet events?
How can I send user authentication information while making URL Connection?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Explain the difference between generic servlet and http servlet?
Why doesn’t a servlet include main()?
How does Cookies work in Servlets?
What is the inter-servlet communication?
What do you mean by httpservlet and how it is different from the genericservlet?
Why the container loads server at the application startup and how?
What is servlet container. how it works?
What are the mechanisms used by a servlet container for maintaining session information?
How httpservlet is different from the genericservlet?