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 is the difference between CGI and Servlet?
Which is the methods of generated servlet?
What is servlet in simple terms?
Why filter is used in servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
When jsessionid is created?
How a servlet is unloaded?
What is the purpose of dispatcherservlet properties?
What is servlet? Explain
What do you mean by httpservlet?
Explain the different ways for servlet authentication?
What is the use of attribute in servlets?
What’s the difference between genericservlet and httpservlet?
Difference between forward() method and sendredirect() method ?
What is Request Dispatcher?