how we can implement interface in jsp ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why static class in java

1488


Explain about thread synchronization inside a monitor?

2238


What is RMI and what are the services in RMI?

843


What is Remote Server?

1889


What is the map interface?

844


Which are the different segments of memory?

831


Should synchronization primitives be used on bean methods?

783


Is the infobus client side only?

861


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

3851


What is chat area? Explain.

769


What restrictions are placed on the location of a package statement within a source code file?

857


Explain how will the struts know which action class to call when you submit a form?

711


Why is actionform a base class rather than an interface?

783


Are enterprise beans allowed to use thread.sleep()?

885


What is the purpose of the notify() method?

823