javax.servlet.jsp
Interface JspPage

All Known Subinterfaces:
HttpJspPage

public interface JspPage
extends Servlet

This is the interface that a JSP processor-generated class must satisfy.

The interface defines a protocol with 3 methods; only two of them: jspInit() and jspDestroy() are part of this interface as the signature of the third method: _jspService() depends on the specific protocol used and cannot be expressed in a generic way in Java.

A class implementing this interface is responsible for invoking the above methods at the apropriate time based on the corresponding Servlet-based method invocations.

The jspInit(0 and jspDestroy() methods can be defined by a JSP author, but the _jspService() method is defined authomatically by the JSP processor based on the contents of the JSP page.


Method Summary
 void jspDestroy()
          jsp_destroy() is invoked when the JspPage is about to be destroyed.
 void jspInit()
          jsp_init() is invoked when the JspPage is initialized.
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Method Detail

jspInit

public void jspInit()
jsp_init() is invoked when the JspPage is initialized. At this point getServletConfig() will return the desired value.

jspDestroy

public void jspDestroy()
jsp_destroy() is invoked when the JspPage is about to be destroyed.