Explain the life cycle of JSP?

Q

Explain the life cycle of JSP?

✍: Guest

A

Any JSP page goes through 7 phases in its entire lifecycle
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.

2013-08-15, 1939👍, 0💬