This is a maintenance review for JSR-245, JavaServerTM Pages 2.1 Specification (JSP 2.1). There are two parts in the MR, Part I covers the JSP specification, and part II covers the Expression Language specification.
The main goal for this part of the maintenance review is is to introduce minor enhancements to JSP, to add clarifications, and to fix errors in the examples.
The JSP configuration element default-content-type
can be used to specify the default contentType property
of a group of JSP pages defined using
the jsp-property-group element.
The valid values for the default-content-type
element are those of the
contentType attribute of the page directive.
It specifies the default
contentType for the response if the page directive does not include a
contentType attribute.
The JSP configuration element buffer
can be used to specify the default buffering model for the initial
out JspWriter for a group of JSP pages defined
using the the jsp-property-group element.
The valid values for the buffer element are those of the
buffer attribute of the page directive. It can
be used to specify if buffering should be used for the output to
Response, and if so, the size of the buffer to use.
Currently, if a tag with an unknown namespace is used in a JSP page it is silently ignored, causing much confusion to page authors. To make the mistakes obvious, this JSP configuration element can be used to force an error when an unknown namespace is used in a JSP page, as is already the case for JSP documents (XML syntax).
The error-on-undeclared-namespace element is a subelement of
jsp-property-group (See 3.3.1). It has no subelements.
Its valid values
are true and false, with false being
the default.
If it is set to true, then an error must be raised during
the translation time, when an undeclared tag is used in a JSP page.
Optional boolean attribute. Can be request-time expression.
Defaults to false. This attribute is ignored if <jsp:attribute>
is used inside a standard or custom action. If the <jsp:attribute>
is used inside a <jsp:element>, and if the value of this attribute
evaluates to true, then the attribute specified by the <jsp:attribute>
is omitted from the output of the tag element constructed by the
enclosing <jps:element>.
The page-encoding and is-xml properties in a property group
are applied to each JSP file matched by its URL pattern.
In <jsp:useBean>, the inspection of the object needs to be done
synchronized only for application or session scopes.
In <jsp:include> or <jsp:forward>, the additional parameters specified in the action
are added in the order of appearance.
Removed the sentence "Defaults to java.lang.String if not
specified."
In a tag file, a variable alias must be unique.
javax.servlet.jsp.tagext package descriptionjavax.servlet.jsp.tagext package description,
"Invocation of a JSP fragment", step 1, second to last sentenceChange "the scoped attribute is removed from the tag file's page scope" to "the scoped attribute is removed from the calling page's page scope".
Change <%attribute ... > to
<%@ attribute ... >.
Change <%taglib ... > to
<%@ taglib ... >.
Fixed errors in the examples.
Fixed an error in the example.