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
What if you need to span your transaction across multiple servlet invocations?
What is the servletconfig object?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What is the capacity the doget can send to the server?
What do you mean by default initialization in java servlet?
What is a servlet?
Can you call a jsp from the servlet?
How do you communicate in between Applets and Servlets?
What is servlet name in web xml?
what do you understand by url rewriting?
What do you mean by web applications?
What is the importance of init() method in Servlet ?
How can we refresh automatically when new data has entered the database?
Can we refresh servlet in client and server side automatically?
Can we get PrintWriter and ServletOutputStream both in a servlet?