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 the servletconfig object?
What is webservlet?
What is called a session?
Can servlet have a constructor ?
When Servlet is unloaded?
What are the differences between servlet context vs servlet config?
Which method of the httpservletrequest object is used?
Difference between java beans & servlets?
what is multiple server?
Describe servlet?
Is servlet synchronized?
How do we go with database connection and log4j integration in servlet?
What does the term localization refer to?
What is pure servlet?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?