JSPs are essentially compiled to servlets and hence follow the life cycle of servlets. As you can see in Figure 5.2, there are three stages in the life cycle of a JSP, which are similar to the servlet life-cycle stages:
Figure 5.2. Life cycle of a JSP. |