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 phases of servlet life cycle?
What is the life-cycle of servlets?
What are the types of servlets? Explain
How can we upload the file to the server using servlet?
Which event is fired at the time of session creation and destroy?
What is servlet and how it works?
What is Servlets and explain the advantages of Servlet life cycle?
When to use doget() and when dopost()?
Can we use threads in Servlets?
What’s the difference between sendredirect and forward methods
What is the difference between forward () and sendredirect () functions in servlet? Explain
Which java framework is most popular?
Explain request dispatcher and its methods.
What is servlet api used for conneting database?
What's the difference between servlets and applets?