how we can implement interface in jsp ?

Answers were Sorted based on User's Feedback



how we can implement interface in jsp ?..

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

how we can implement interface in jsp ?..

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

Post New Answer

More Advanced Java Interview Questions

what are getters and setters in Java with examples?

0 Answers   HCL, Infotech,


Can you control when passivation occurs?

0 Answers  


difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


Why use a datasource when you can directly specify a connection details?

0 Answers  


how do you Handle Front End Application data against DB with example?

0 Answers   Campus Interaction, HCL,






What is in-memory replication?

0 Answers  


What are the services in RMI ?

0 Answers  


explain session tracking. why we used it

3 Answers   Lionbridge,


What is a policy?

0 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


wahts is mean by dynavalidatorform in struts/

0 Answers   SolutionNET,


What is Bootstrapping in RMI?

1 Answers  


Categories