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
Write a command to get actual path of a servlet to the server?
Explain servlet events?
What is difference between jsp and servlet?
What is a cookie What is the difference between session and cookie
What is the difference between servlet and filter?
How do I support both get and post from the same servlet?
Explain request dispatcher and its methods.
What are different ways for authentication of servlet?
What are the differences between forward() method and sendredirect() methods?
What is the life cycle of a servlet?
What is servlet used for?
What is the use of attribute in servlets?
What is the procedure of invoking different servlet in a different application?
How can we include static files in the jsp page?
What is the use of welcome-file-list?