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 are the exceptions thrown by servlets? Why?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is URL Encoding?
What are the disadvantages of storing session state in cookies?
What is a deployment descriptor?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Write a program to show the functionality of doget and dopost method?
What exactly is a servlet?
Explain mvc pattern.
What are the different methods involved in generic servlet?
How do you define a servlet?
Explain is servlet mapping?
What are its drawbacks of cgi?
Why is httpservlet declared abstract?
How many objects of a servlet is created?