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
Whether thread can be used in servlets?
What is new in ServletRequest interface ? (Servlet 2.4)
What is servlet interface?
How do you design microservices?
Why do we use sendredirect() method?
How can we refresh automatically when new data has entered the database?
What are the phases of servlet life cycle?
What do you mean by interservlet communication?
What is meant by Servlet? What are the parameters of service method?
Explain the difference between a web server and a web container?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is the use of attribute in servlets?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Can we override servlet service method?
Explain the architechure of a servlet?