NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide

Migrating to NSJSP 5.0
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-002
7-12
Changes from JSP 1.2 to JSP 2.0
Changes from JSP 1.2 to JSP 2.0
Differences between the JavaServer Pages 2.0 API specification and JavaServer
Pages 1.2 specification.
A new simple Expression Language.
The JavaServer Pages Expression Language (EL) has been added to the
JavaServerPages 2.0 API. The Expression Language was originally defined in the
JSP StandardTag Library (JSTL) 1.0 specification and is now incorporated in the
JavaServer Pages 2.0 API specifications. You can use EL with all standard and
custom JSP components as well as with template text (that is, EL is no longer
restricted to custom tags).
An Expression Language extension with a function call mechanism.
The EL has a function call mechanism that makes a set of commonly used
functions more readily available.
Better error handling in JSP error pages.
JSP Error pages have more information about the error. A new class
javax.servlet.jsp.ErrorData, which has methods to return the request
URI, servlet name, status code, and the actual exception. In addition, the
Container reporting for JSP syntax errors is stricter, which simplifies error tracking.
The JavaServer Pages 2.0 API specification also defines a Simple Invocation
Protocol, which avoids the complex invocation mechanism of the classic invocation
protocol and which implements tag files.
XML content handling improvements.
Dynamic XML content can be written as JSP content. File extensions .jspx
and .tagx indicate XML versions of JSP and tag files.
The Java Servlet 2.4 API specification uses a XML schema for the declaration
of the deployment descriptor rules. The JavaServer Pages 2.0 API adds
configuration options under the <jsp-configType> and the <taglib>
elements. In addition, several configuration options allow for global
configuration instead of a per- page configuration.
Loosened Page directive checks.
Page directive checks allow for duplicates (in the same manner as for the taglib
directive) and make static includes more useful. Note that duplicates are only
allowed as long as their values are identical.
JSP Fragments.
JSP API classes have been added for JSP fragments, tag libraries, and the EL
function call mechanism. In addition, the PageContext class extends the
JSPContext and has had some functionality moved to the JSPContext