JSP page life cycle
JSP page life cycleAnswer
JSP page life cycle includes 3 methods
This initializes the JSP.
Each time a request comes to the JSP, _jspService() method is invoked, the request is processed and response is generated.
This method is used for clean process and is called when JSP is destroyed by the server.
JSP page life cycleA request from a browser is served as servlet in JSP. In this way the lifecycle and certain capabilities of JSP are determined by a servlet.
At the time of mapping a request to a JSP, that request is handled by a special servlet which checks the JSP’s servlet is older than the JSP. If so, the JSP is translated into a servlet class and compiles. The build process of a web application is done automatically, by using JSP over servlet.
You may like