Example & Tutorial understanding programming in easy ways.

Explain lifecycle methods of jsp?.

These are :

 1) jsplnit(): The container calls this to initialize servlet instance. It is called only once for the servlet instance and preceded every other method.
 
 2) jspService(): The container calls this for each request and passes it on to the objects.
 
 3) jspDestroy(): It is called by the container just before destruction of the instance.

Read More →