Share on Google+Share on Google+

Java Server Pages (JSP)

In this tutorial we are going to give you over view of JSP.

Java Server Pages (JSP)

In this tutorial we are going to give you over view of JSP.

What is JSP ?

JSP is java based technology by using that you can develop web content that holds both static and dynamic components.
It is developed by Sun Microsystems for server side development. It provides all the dynamic capabilities of Java Servlet technology but also provide better approach for creating static content.

Why use JSP ?

  • By using JSP you can develop websites and applications in quick and standard way. It provides concept of object oriented language.
  • Its performance is very good as it permits embedding Dynamic Elements in HTML Pages itself.
  • JSP are always compiled before it's processed by the server.
  • It is built on top of Java Servlets API, so as servlets it also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP etc.

Process of JSP  -

To process the JSP pages, web server requires a JSP engine. The JSP container is responsible for providing the runtime environment and other services which is required by JSP.

Here we are giving you steps of JSP processing -

  1. Client sends an HTTP request to the web server.
  2. The web server checks that the generated request is for JSP page then it forwards it to a JSP engine. This task is done by the URL.
  3. JSP container loads the JSP page and convert it into servlet content.
  4. JSP engine compiles the servlet into an executable class and forward the actual request to a servlet engine.
  5. The web server request for the servlet container ,loads the servlet class and executes it. In execution time ,the servlet produces the output in HTML format which is passed to the web server inside an HTTP response.
  6. This HTTP response is forwarded to the browser in terms of static HTML content.
  7. Finally web browser handles the dynamically generated HTML page inside the HTTP response.




Posted on: November 21, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null