Interface JspPage

  • All Superinterfaces:
    Servlet
    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 Detail

      • jspInit

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

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