Answer Posted / aashish r. wadhokar
no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.
yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What are the types of an http request?
What are the functions of an intercepting filter?
Which method of the httpservletrequest object is used?
What is the difference between 2 types of servlets?
How to rectify errors in java servlet while compilation?
How do you communicate in between Applets and Servlets?
What is called a session?
How can we perform any action at the time of deploying the project?
What is the use of servlet context?
What are the difference between session and cookies in servlet? Explain
Is servlet a framework?
What are the differences between servlet context vs servlet config?
List out difference between a JavaBean from a Servlet?
Explain the difference between get and post method in servlet?
How to generate the server side programming and the advantages of it over the other languages?