How a JSP Page is processed?
by, 07-07-2012 at 07:07 PM (4988 Views)
In this topic, we will dicuss how a JSP Pages is created and processed by a web server. Following steps will explain it in more detail.
An HTTP request is sent to the web server by your JSP Page.
The web server is responsible for receiving this JSP Page request and it will determine that its a JSP request so it will call the JSP engine. This process is done for the pages that have a .jsp extension.
The requested JSP page will be loaded from the disk and the JSP engine will convert it into a servlet. It is a simple conversion where:
o HTML text and converted and print statements are created using this HTML text. The generated servlet is finally compiled and converted into a class. This class is then forwarded to servlet engine.
o All the expressions are converted into proper Java code by the JSP engine.
Finally, this class is loaded and executed by the servlet engine. In the servlet execution process, HTML output is generated which is passed to web server.
The web server is responsible for sending this HTML output back to the web client.
As a last step, web browser handles the HTML output and renders it on the web page.
JSP Page Processing