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 methodology can be followed to store more number of objects in a remote server?
Who is responsible for writing a constructor?
Explain servlet life cycle?
Where do you define dispatcherservlet?
How to generate the server side programming and the advantages of it over the other languages?
What are the disadvantages of storing session state in cookies?
What is the disadvantage of cookies?
Explain in brief the directory structure of a web application?
What are the uses of servlet
When servlet is loaded?
Explain the difference between generic servlet and http servlet?
What is the dispatcher servlet?
What is webservlet?
Explain web application directory arrangement?
Why do we need a constructor in a servlet if we use the init method?