Friday, 28 February 2014

What are the LIFE CYCLE methods of JSP?


  1. It is called before any other method.
  2. Called only once for a servlet instance. 
  3. Used to initialize the servlet instance. 


  1. _jspservice() is called for each request 
  2. It takes the request and the response objects as arguments. 
  3. _jspService() method can't be overridden. 


  1. It is called by container when its instance is about to be destroyed. 
  2. The jspInit() and jspDestroy() methods can be overridden within a JSP page.

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.