JSP Life Cycle
JSP Life Cycle
- Translating JSP to Servlet. (hello.jsp->hello_jsp.java)
- Compile the translated Servlet. (hello_jsp.java->hello_jsp.class)
- Loads the translated Servlet.
- Creates the instance of translated Servlet.
- Calls the life cycle method _jspInit().
- when user sends the request then container calls the life cycle method _jspService().
- At container shutdown time, containers call the _jspDestroy() method of life cycle.
You can find the translated Servlet and compiled classes in the folder Tomcat6.0catlinalocalhostorgapachejsp
Available link for download