Life cycle of JSP:

-Validation- Container checks whether the tags are valid or not.
-Translation- Container converts the JSP file to servlet(MyJsp.jsp->MyJsp_jsp.java) file.
-Compilation- Compiles the servlet file to .class file.
-Configuration- configures the servlet in the web application
-Execution- In the execution phase there are three life cycle methods as servlet.
-jspInit()
-_jspService()
-jspDestroy()
you can override the jspInit() and jspDestroy(). But you can not override the _jspService() method.

No comments:

Post a Comment