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

why we use main in java?

4 Answers  


What is meant by Superconductivity?

4 Answers  


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

0 Answers  


What are externizable interface?

0 Answers  


what is the proxy pattern?

1 Answers  


What are the ways to define classes that can be run as threads?

1 Answers   KPIT,


Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 Answers  


What is scalable, portability in the view of J2EE?

0 Answers  


I wantr to know, How many number of users logged in to website? can any one answer

7 Answers   Cap Gemini,


Explain Life cycle of Servlet Filter.

2 Answers   InfoBrain, ITC Infotech,


What is the map interface?

0 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


Categories