jump to navigation

JSP Overview August 22, 2005

Posted by Coolguy in Servlets/Jsp.

JavaServer Pages (JSP) is the Java 2 Platform, Enterprise Edition (J2EE) technology for building applications for generating dynamic web content, such as HTML, DHTML, XHTML, and XML.

Benefits of JavaServer Pages

  • Write Once, Run Anywhere properties
  • High quality tool support
  • Separation of Roles:JSP supports the separation of developer and author roles. Developers write components that interact with server-side objects. Authors put static data and dynamic content together to create presentations suited for their intended audience.
  • Reuse of components and tag libraries: JavaServer Pages technology emphasizes the use of reusable components such as JavaBeans components, Enterprise JavaBeans ™ components, and tag libraries.
  • Separation of dynamic and static content: JavaServer Pages technology enables the separation of static content in a template fom dynamic content that is inserted into the static template.
  • Support for actions, expressions, and scripting: Actions encapsulate useful functionality in a convenient form that can be manipulated by tools. Expressions are used to access data. Scripts can be used to glue together this functionality in a per-page manner.
  • Web access layer for N-tier enterprise application architecture(s)

The key features of JavaServer Pages are:

  • Standard directives
  • Standard actions
  • Scripting elements
  • Tag Extension mechanism
  • Template content

A web application can be composed of:

  • Java Runtime Environment(s) running on the server (required)
  • JSP page(s) that handle requests and generate dynamic content
  • Servlet(s) that handle requests and generate dynamic content
  • Server-side JavaBeans components that encapsulate behavior and state
  • Static HTML, DHTML, XHTML, XML, and similar pages.
  • Client-side Java Applets, JavaBeans components, and arbitrary Java class files
  • Java Runtime Environment(s) running in client(s) (downloadable via the Plugin

and Java Web Start technology)

Translation and Execution Steps

  • JSP pages are textual components.
  • They go through two phases: a translation phase, and a request phase.
  • Translation is done once per page.
  • The JSP page is translated to create a servlet class, the JSP page
  • implementation class, that is instantiated at request time.
  • The request phase is done once per request.
  • The instantiated JSP page object handles requests and creates responses.


No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: