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 is JTA ?

2 Answers  


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

1 Answers  


What is chat area? Explain.

0 Answers  


How to determine SGA site?

0 Answers   Wipro,






What is the difference between the string and stringbuffer classes?

0 Answers  


What must a class do to implement an interface?

0 Answers  


What is jboss?

0 Answers  


What is there in browser that it supports web based applications of java or any other PL?

2 Answers  


Why are some of the class and element names counter-intuitive?

0 Answers  


can any one tell me how to learn good coding techniques

3 Answers  


how the action can be map from jsp page to bean class in mvc1

1 Answers   Photon,


Categories