Wednesday, January 24, 2007

Lifecycle of JSP

There are two life cycle phases in JSP:
1) Translation phase:
Here the jsp page is converted to a servlet page and compiled to .class file

2)Execution phase:
Compiled code is executed.

The methods used for the life cycle of JSP are:
1.jspInit()
2.jspService()
3.jspDestroy().

SOURCE : www.referjava.com

1 comment:

Java Tutorials Blog said...

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