Servlet and JavaServer Pages API Documentation: Interface JspPage

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.servlet.jsp
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 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.