how we can implement interface in jsp ?
Answers were Sorted based on User's Feedback
Answer / rahul
A JSP page can't directly implement an interface. If you
really need to do this you'll have to define a superclass
for your page which implements the interface. If you
declare this superclass to be abstract you can defer the
implementation of the interface to the JSP page. This
superclass will have to implement the interfaces
HttpJspPage and Servlet too, otherwise you will get a
compilation error from the JSP compiler.
Is This Answer Correct ? | 27 Yes | 4 No |
Answer / srinu
yes we can implement interface.The follwing way we can
imlement the interface.
<%@ page import='mypackage.MyInterface' %>
Is This Answer Correct ? | 4 Yes | 22 No |
what are getters and setters in Java with examples?
Can you control when passivation occurs?
difference between HashMap, Hashset and hashTable?
Why use a datasource when you can directly specify a connection details?
how do you Handle Front End Application data against DB with example?
0 Answers Campus Interaction, HCL,
What is in-memory replication?
What are the services in RMI ?
explain session tracking. why we used it
What is a policy?
diff between jsp include directive and jsp action include?
wahts is mean by dynavalidatorform in struts/
What is Bootstrapping in RMI?