An attribute value of the form
%> or `<%=
request time attribute value
. The value denoted is that of the scriptlet expression involved.
Request time attribute values can only be used in actions. If there are more than one such
attribute in a tag, the expressions are evaluated left to right.
Only attribute values can be denoted this way (e.g. the name of the attribute is always an
explicit name), and the expression must appear by itself (e.g. multiple expressions, and
mixing of expressions and string constants are not permitted; instead perform these
operations within the expression).
The resulting value of the expression depends upon the expected type of the attribute's value.
The type of an action element indicates the valid Java programming languag type for each
attribute value; the default is
By default, all attributes have page translation time semantics. Attempting to specify a
scriptlet expression as a value for an attribute that has page translation time semantics is
illegal, and will result in a fatal translation error. The type of an action element indicates
whether a given attribute will accept request time attribute values.
Most attributes in the actions defined in the JSP 1.1 specification have page translation time
The following attributes accept request time attribute expressions:
attribute/value tuple in an element has special meaning to a JSP container,
both at page translation time, and at client request processing time; in particular:
must be unique within the translation unit, and identifies the particular element
in which it appears to the JSP container and page.
's found in the same translation unit shall result in a fatal translation error.
In addition, if the action type creates one or more object instance at client request
processing time, one of these objects will usually be associated by the JSP container with
the named value and can be accessed via that name in various contexts through the
object described later in this specification.
is also used to expose a variable (name) in the page's scripting
language environment. The scope of this scripting language dependent variable is
dependent upon the scoping rules and capabilities of the actual scripting language used in
the page. Note that this implies that the
value syntax shall comply with the variable
naming syntax rules of the scripting language used in the page.
Standard Syntax and Semantics