Please explain the lifecycle of a JSP page in detail.
Created May 4, 2012
Ryan Breidenbach This is the typical life cycle for a JSP page:
- Before a JSP is accessed for the first time, it exists as it was originally created, as a .jsp file.
- When a request is first made for the JSP, it it translated into .java file. This file represents a servlet class with all the JSP tags and scriplets converted to corresponding Java code.
- This .java is then compiled into a .class file for the servlet container to use.
- From this point on, it enters the life cycle of a servlet.