javax.servlet.jsp
Interface JspPage
- Servlet
- HttpJspPage
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.
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.
|
jspDestroy
public void jspDestroy()
jsp_destroy() is invoked when the JspPage is about to be destroyed.
jspInit
public void jspInit()
jsp_init() is invoked when the JspPage is initialized.
At this point getServletConfig() will return the desired value.
Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.