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:
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
The JSP file is translated into a servlet-like implementation class.
Creating an instance of the JSP.
Servicing client requests.
Destroying the JSP instance.