View RSS Feed

JSP

How a JSP Page is processed?

Rate this Entry
by
JSP
, 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 it’s 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.
o All the expressions are converted into proper Java code by the JSP engine.
• The generated servlet is finally compiled and converted into a class. This class is then forwarded to servlet 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.

Name:  1.jpg
Views: 2198
Size:  30.1 KB
JSP Page Processing

Submit "How a JSP Page is processed?" to Facebook Submit "How a JSP Page is processed?" to Digg Submit "How a JSP Page is processed?" to del.icio.us Submit "How a JSP Page is processed?" to StumbleUpon Submit "How a JSP Page is processed?" to Google

Categories
Tutorial

Comments