JavaServer Pages Technology

JavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content. JSP technology enables rapid development of web-based applications that are server- and platform-independent.

The JSP Standard Tag Library (JSTL) is a collection of tag libraries that implement general-purpose functionality common to many Web applications.

JSP Technology in the Java EE 5 Platform

The focus of Java EE 5 has been ease of development by making use of Java language annotations that were introduced by J2SE 5.0. JSP 2.1 supports this goal by defining annotations for dependency injection on JSP tag handlers and context listeners.

Another key concern of the Java EE 5 specification has been the alignment of its webtier technologies, namely JavaServer Pages (JSP), JavaServer Faces (JSF), and JavaServer Pages Standard Tag Library (JSTL).

The outcome of this alignment effort has been the Unified Expression Language (EL), which integrates the expression languages defined by JSP 2.0 and JSF 1.1.

The main key additions to the Unified EL that came out of tbe alignment work have been:

  • A pluggable API for resolving variable references into Java objects and for resolving the properties applied to these Java objects,
  • Support for deferred expressions, which may be evaluated by a tag handler when needed, unlike their regular expression counterparts, which get evaluated immediately when a page is executed and rendered, and
  • Support for lvalue expression, which appear on the left hand side of an assignment operation. When used as an lvalue, an EL expression represents a reference to a data structure, for example: a JavaBeans property, that is assigned some user input.

The new Unified EL is defined in its own specification document, which is delivered along with the JSP 2.1 specification.

Thanks to the Unified EL, JSTL tags, such as the JSTL iteration tags, can now be used with JSF components in an intuitive way.

JSP 2.1 leverages the Servlet 2.5 specification for its web semantics.

What's New

Maintenance Review on JavaServer Pages JSR 245. There are two sets of changes

Final Release of JavaServer Pages Specification Download the final release of the JavaServer Pages Specification, version 2.1. This version of JavaServer Pages technology is part of the Java EE platform.

Web Tier to Go With Java EE 5: A Look at Resource Injection Read about the support for annotations by Java web tier technologies and how they can simplify access to resources, environment data, and life-cycle control.

What's New in JSP Technology 2.1 In this first article in the Web Tier to Go with Java EE 5 series, we discuss the major contributions of JavaServer Pages technology version 2.1 to the Java EE platform.