- Optional:
id
: document-unique id for the tag.valueVar
: the scripting-variable name to which each value of a collection or property will be bound. Defaultid
+ "Value", or "cValue" if no id was specified.
Nothing.
- forEachInList: Evaluates its body for each member of an indexed collection.
- Required attributes:
collection
: thejava.util.List
over which the tag will iterate. This should be a JSP expression or an EL value expression.
- Optional attributes:
from
: the first index for which to evaluate the tag's body. Default0
.to
: the last index for which to evaluate the tag's body. Defaultcollection.size() - 1
.step
: the quantity by which the index should be incremented for each iteration. Default1
.indexVar
: the scripting-variable name to which the current index will be bound. Defaultid
+ "Index", or "cIndex" if no id was specified.
- Scripting variables:
cIndex
: the current index into the collection. Nested scope.cValue
: the value in the collection at the current index. Nested scope.
- Required attributes:
- forEachIndexedProperty: Evaluates its body for each value of an indexed property on a Java Bean.
- Required attributes:
name
: the name of the bean variable, as declared in a prior scriptlet or<jsp:useBean id="name">
.property
: the name of the indexed property to access.
- Optional attributes:
from
: the first index for which to evaluate the tag's body. Default0
.to
: the last index for which to evaluate the tag's body. Defaultn
, wheren
is the last index of the property.step
: the quantity by which the index should be incremented for each iteration. Default1
.indexVar
: the scripting-variable name to which the current index will be bound. Defaultid
+ "Index", or "cIndex" if no id was specified.
- Scripting variables:
cIndex
: the current index into the property. Nested scope.cValue
: the value of the property at the current index. Nested scope.
- Required attributes:
- forEachInMap: Evaluates its body for each key-value pair in a Map.
- Required attributes:
collection
: thejava.util.Map
over which the tag will iterate. This should be a JSP expression or an EL value expression.
- Optional attributes:
keyVar
: the scripting-variable name to which the current key will be bound. Defaultid
+ "Key", or "cKey" if no id was specified.
- Scripting variables:
cKey
: the current key on the map. Nested scope.cValue
: the value in the map for the current key. Nested scope.
- Required attributes:
- forEachMappedProperty: Evaluates its body for each key-value pair of a mapped property on a Java Bean. Mapped properties are not strictly part of the Java Beans Framework, but they're an extremely common extension.
- Required attributes:
name
: the name of the bean variable, as declared in a prior scriptlet or<jsp:useBean id="name">
.property
: the name of the mapped property to access.
- Optional attributes:
keyVar
: the scripting-variable name to which the current key will be bound. Defaultid
+ "Key", or "cKey" if no id was specified.
- Scripting variables:
cKey
: the current key on the property. Nested scope.cValue
: the value of the property for the current key. Nested scope.
- Required attributes: