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

whats is mean by jndi

1 Answers   SolutionNET,


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


What is J2EE?

2 Answers  


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


What is local interface. How values will be passed?

0 Answers  


Thread life cycle?

3 Answers   TCS,


What is the purpose of the notifyall() method?

0 Answers  


What class is the top of the awt event hierarchy?

0 Answers  


whats is mean by connectionpooling

0 Answers   SolutionNET,


What happens when a thread cannot acquire a lock on an object?

0 Answers  


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


what is DGC?

1 Answers  


Categories