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 about static?

1 Answers  


What is the difference between long.class and long.type?

0 Answers  


Explain lazy activation?

1 Answers   HCL,


Is 'synchronised' a modifier?

2 Answers   NIIT,


can any one tell me how to learn good coding techniques

3 Answers  






What restrictions are placed on the values of each case of a switch statement?

0 Answers  


What is colon_pkg_prefixes and what is its use?

0 Answers  


the use of try and ffinally keyword

1 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


Brief description about local interfaces?

0 Answers  


What are the thread-to-thread communcation?

1 Answers  


What is Stream and Types?

2 Answers   Patni,


Categories