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
Is it good idea to create servlet constructor?
How can the referrer and the target urls be used in servlet?
Why are http servlets used in programming?
How do you deal property files in servlet?
What is string tokenizer?
What is the difference in between the httpservlet and generic servlet?
Write a program to show the functionality of servlets.
What are the different methods involved in the process of session management in servlets?
What is the use of welcome-file-list?
What is the difference between Server and Container?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is life cycle of Servlet?
What are the important functions of filters?
How is a servlet implemented in code?
What is a deployment descriptor?