Monday, August 15, 2011

JSP page life-cycle phases


JSP page life-cycle phases
Phase Name Description
Page translation The page is parsed and a Java file containing the corresponding servlet is created.
Page compilation The Java file is compiled.
Load class The compiled class is loaded.
Create instance An instance of the servlet is created.
Call jspInit() This method is called before any other method to allow initialization.
Call _jspService() This method is called for each request.
Call jspDestroy() This method is called when the servlet container decides to take the servlet out of service.