Answer Posted / jayakrishna
We cannot implement an interface in a jsp but we can extend
a class in JSP by using extends attribute of the page
directive.
extends "package.class"
The fully qualified name of the superclass of the Java
class file this JSP file will be compiled to. Use this
attribute cautiously as it can limit the JSP container's
ability to provide a specialized superclass that improves
the quality of the compiled file.
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Explain the role of dispatcherservlet and contextloaderlistener.
What are the difference between RMI and Servlets?
What is difference between cookies and httpsession?
What do you mean by a filter and how does it work?
How httpservlet is different from the genericservlet?
What is servlet interface?
How to generate the server side programming and the advantages of it over the other languages?
What are session variable in servlets?
What are common tasks performed by Servlet Container?
What is the need of servlet filters?
Why is a constructor needed in a servlet even if we use the init method?
Is that servlet is pure java object or not?
What is a servlet-to-servlet communcation?
Can we refresh servlet in client and server side automatically?
Does servlet have main method?