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 | 1 No |
Post New Answer View All Answers
When servlet object is created?
Which is the methods of generated servlet?
What is servlet lazy loading?
How can I send user authentication information while making URL Connection?
What is new in ServletRequest interface ? (Servlet 2.4)
Why doesn’t a servlet include main()? How does it work?
What is the procedure for initializing a servlet?
Define the life cycle of a servlets.
Why servlet is faster than jsp?
What is the difference between servlet and jsp?
List out difference between a JavaBean from a Servlet?
Why session tracking is needed?
What is the use of send redirect () method?
If a servlet is not properly initialized, what exception may be thrown?
What is the workflow of a servlet?