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 | 2 No |
Post New Answer View All Answers
What are the different types of servlets?
What is the use of httpservletresponsewrapper?
Write a program to show the functionality of doget and dopost method?
What is url encoding and url decoding
How to rectify errors in java servlet while compilation?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
When servlet is loaded?
How to get the current httpsession object?
How to create war file?
How many objects of a servlet is created?
Elucidate servlet attributes and its scope?
What are the different session tracking techniques?
What is api in servlet?
Explain the servlet context.
What do you mean by filter in servlet?