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
What is a generic servlet?
What are its drawbacks of cgi?
What is the purpose of inter-servlet communication?
What is the difference between genericservlet and httpservlet
Difference between java beans & servlets?
Does servlet have main method?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Define servlet mapping?
Why do you use session tracking in httpservlet?
What is the difference between context parameter and context attribute?
What are different ways for authentication of servlet?
What is the difference between sendredirect() and forward() in a servlet?
How httpservlet is different from the genericservlet?
Explain the methods of request dispatcher in servlet?
List out difference between a JavaBean from a Servlet?