6.4. JSP life cycle

JSP files are compiled into servlets. After a JSP is compiled, its life cycle is similar to the servlet life cycle as shown in Figure 101 on page 195.

Figure 101. JSP life cycle

6.4.1. Java source generation and compilation

When a servlet engine receives a request for a JSP file, it passes the request to the JSP processor.

If this is the first time the JSP file has been requested or if the compiled copy of the JSP file is not found, the JSP compiler (JSP processor) generates and compiles a Java source file for the JSP file. The JSP processor puts the Java source and class file in the JSP processor directory (see 6.5.2 ...

Get WebSphere V3.5 Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.