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
Explain is servlet mapping?
How a servlet is unloaded?
What is the purpose of requestdispatcher interface?
What is a web application and what is it’s directory structure?
Which interface must be implemented by all servlets?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What are the different types of servlets?
How many objects of a servlet is created?
Difference between doget and dopost?
How to handle exceptions thrown by application with another servlet?
What is a server side include (ssi)
Can you create a deadlock condition on a servlet?
What if you need to span your transaction across multiple servlet invocations?
What is the web server used for running the Servlets?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code