how JSP can extend servlet or interface ...?

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


Please Help Members By Posting Answers For Below Questions

How do cookies work in servlets?

797


Can filter be used as request or response?

732


How the JSP file will be executed on the Server side?

877


What are the types of servlet?

900


What’s the difference between genericservlet and httpservlet?

736


What is the purpose of dispatcherservlet properties?

715


Explain the difference between generic servlet and http servlet?

739


What is life cycle of Servlet?

801


What is webservlet?

738


What are the uses of servlet and what is servlet chaining?

797


What is a servlet context?

821


Explain web application directory arrangement?

789


What is meant by a servlet?

797


What do you mean by cgi and what are its drawbacks?

724


how the HTML data stored in web server?

2202