Lifecycle of a JSP Page
The JSP pages follow these phases:
- Translation
of JSP Page
- Compilation
of JSP Page
- Classloading
(the classloader loads class file)
- Instantiation
(Object of the Generated Servlet is created).
- Initialization
( the container invokes jspInit() method).
- Request
processing ( the container invokes _jspService() method).
- Destroy ( the container invokes jspDestroy() method)
JSP
page is translated into Servlet by the help of JSP translator. The JSP
translator is a part of the web server which is responsible for translating the
JSP page into Servlet. After that, Servlet page is compiled by the compiler and
gets converted into the class file. Moreover, all the processes that happen in
Servlet are performed on JSP later like initialization, committing response to
the browser and destroy.
No comments:
Post a Comment