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 servlet? Explain
What is the use of request dispatcher interface?
What’s the difference between genericservlet and httpservlet?
Explain the lifecycle of a servlet?
What is the difference between the servlets and cgi programs?
Why are servlets used?
Explain the jar and war files in servlet?
What methodology can be followed to store more number of objects in a remote server?
Explain the servlet context.
How can you push data from an Applet to a Servlet?
Whether we can get deadlock situation in servlets?
What is the need of servlet filters?
What is the difference between get and post methods?
What is the difference between the include() and forward() methods?
Why doesn’t a servlet include main()?