Life Cycle: Jsp Life cycle has following phases:
1) Parsing,Translation and Compilation
2) Initialization
3) Execution
In first step jsp page is parsed and translated into servlet and then compiled into class. After compilation It gets initialized using init method.
public void jspInit(){ //Initialization }
And then after initialization service method will get called to process the request and send the response back to the user.
void _jspService(HttpServletRequest request, HttpServletResponse response) { //Request Processing }
After the request is serviced cleanup will work when jsp is getting uploaded from memory and destroy will get called.
public void jspDestroy() { //Nullifying object or Do Nothing }
Above steps followed for the first request. Once the jsp already loaded in memory then service will get called directly to process the request.