MY mENU


Wednesday 21 March 2012

What are the lifecycle phases of a JSP?

Life Cycle Phases of Jsp:


Life cycle of JSP contains the following phases: 
  1.  Page translation: -converting from .jsp file to .java file 
  2.  Page compilation: converting .java to .class file 
  3.  Page loading : This class file is loaded. 
  4.  Create an instance :- Instance of servlet is created 
  5.  jspInit() method is called 
  6.  _jspService() is called to handle service calls 
  7.  jspDestroy() is called to destroy it when the servlet is not required.

2 comments:

Java Experience said...

In the JSP lifecycle, the destroy method is also invoked when the server shuts down

Srinivas Mahanti said...

thanks for you

Post a Comment