Monday, 4 November 2013

JSP Life Cycle

Advertisement


  1. Translating JSP to Servlet. (hello.jsp->hello_jsp.java)
  2. Compile the translated Servlet. (hello_jsp.java->hello_jsp.class)
  3. Loads the translated Servlet.
  4. Creates the instance of translated Servlet.
  5. Calls the life cycle method _jspInit().
  6. when user sends the request then container calls the life cycle method _jspService().
  7. At container shutdown time, containers call the _jspDestroy() method of life cycle.
You can find the translated Servlet and compiled classes in the folder Tomcat6.0\catlina\localhost\org\apache\jsp


EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)