The Lifecycle of a JSP

The lifecycle of a JSP is one you should be familiar with from the discussion of servlets in Chapter 3. Because JSPs are compiled into classes very similar to servlets the first time they are requested, their behavior and controls are identical to servlets after the first request. The WebLogic Server JSP container handles the lifecycle automatically.

For all practical purposes, JSPs are compiled into servlets. Technically speaking, JSPs are not compiled into pure servlets. Some slight differences are introduced in the compilation and translation process. However, the JSP developer and deployer never actually deal with the compiled servlet code, and the development model of JSPs follows the servlet paradigm.

Initialization ...

Get J2EE™ Applications and BEA™ WebLogic Server™ 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.