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
How to make sure a servlet is loaded at the application startup?
Why the container loads server at the application startup and how?
How the servlet is loaded?
Explain in brief the directory structure of a web application?
When servlet object is created?
What are the types of an http request?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explain request dispatcher and its methods.
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Define servlet mapping?
List out difference between a JavaBean from a Servlet?
What are the different methods of session management in servlets?
What exception should be thrown when servlet is not properly initialized?
Explain the difference between get and post method in servlet?
What are the jobs performed by servlets?