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 Guide—525644-002
7-13
Changes from JSP 1.2 to JSP 2.0
superclass for a cleaner implementation. This change does not affect the
PageContext class and is compatible with previous JSP releases.
Fragments are pieces of a JSP page that are translated into implementations of
the JspFragment class before being passed to a tag handler. Fragments are
automatically created for any JSP code in the body of any tag handled by the
SimpleTagHandler or defined using a named attribute (one defined through
<jsp:attribute> tag), that is declared to be a fragment or of type JspFragment
in the Tag Library Descriptor (TLD). Therefore, a tag handler can evaluate and re-
evaluate this fragment as many times as needed and even pass it on to other tag
handlers. Note that JSP fragments cannot contain scriptlets or scriptlet
expressions.
•
Tag Files.
Tag Files are JSP fragment files that have JSP content and which are
implementations of JSP tags. Tag Files allow for modular page components,
including XML content, which can be included in any JSP page.
•
Simple Tag Handlers.
Tag handlers can use the simplified TagHandler API.
Referring to any classes from the unnamed (default) package is illegal.
From the JavaServer Pages 2.0 API specifications, section JSP.11.2:
"As of JSP 2.0, it is illegal to refer to any classes from the unnamed (a.k.a. default)
package. This may result in a translation error on some containers, specifically those
that run in a JDK 1.4 or greater environment. It is unfortunate, but unavoidable, that
this will break compatibility with some older JSP applications. However, as of JDK 1.4,
importing classes from the unnamed package is not valid (see
http://java.sun.com/j2se/1.4/compatibility.html#source for details). Therefore, for
forwards compatibility, applications must not rely on the unnamed package. This
restriction also applies for all other cases where classes are referenced, such as when
specifying the class name for a tag in a TLD."
See the JavaServer Pages 2.0 API documentation for more information
http://java.sun.com/products/servlet/.