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 are the different session tracking techniques?
How do you define a servlet?
Whether thread can be used in servlets?
What do you mean by interservlet communication?
What's the servlet interface?
What is life cycle of Servlet?
What is servletconfig?
Write a command to get actual path of a servlet to the server?
What is cookie in servlet?
What is the use of servlet wrapper classes?
Who is responsible for writing a constructor?
How to generate the server side programming and the advantages of it over the other languages?
Explain the difference between generic servlet and http servlet?
How do you get the ip address of the client in servlet?
How do you load an image in a Servlet?