Show TOC

JSP Life CycleLocate this document in the navigation structure

Use

The Web Container also manages the life cycle of a JSP. The figure below describes the life cycle of a JSP.

The life cycle of a JSP consists of the following phases:

  1. The Web Container receives a request for a JSP.

    • If the JSP exists as a translated resource and has not changed, the Web Container proceeds with servicing requests

    • If this is the first request for a JSP, or the JSP has changed since the last request, the Web Container proceeds with translating the JSP

  2. The JSP file is translated into a servlet-like implementation class.

  3. Creating an instance of the JSP.

  4. Servicing client requests.

  5. Destroying the JSP instance.