- When the user goes to a JSP page web browser makes the request via internet.
- JSP request gets sent to the Web server.
- Web server recognises the .jsp file and passes the JSP file to the JSP Servlet Engine.
- If the JSP file has been called the first time,the JSP file is parsed,otherwise Servlet is instantiated.
- The next step is to generate a special Servlet from the JSP file. All the HTML required is converted to println statements.
- The Servlet source code is compiled into a class.
- The Servlet is instantiated,calling the init and service methods.
- HTML from the Servlet output is sent via the Internet.
- HTML results are displayed on the user's web browser