Given a reference to an array, Collection or Map, creates a new bean, of
type java.lang.Integer
, whose value is the number of elements
in that collection. You can specify the collection to be counted in any
one of the following ways:
- As a runtime expression specified as the value of the
collection
attribute.
- As a JSP bean specified by the
name
attribute.
- As the property, specified by the
property
attribute,
of the JSP bean specified by the name
attribute.
Attribute Name |
Description |
collection |
A runtime expression that evaluates to an array, a Collection, or
a Map.
[RT Expr]
|
id |
The name of a page scope JSP bean, of type
java.lang.Integer , that will be created to contain the
size of the underlying collection being counted.
[Required]
|
name |
The name of the JSP bean (optionally constrained to the scope
specified by the scope attribute) that contains the
collection to be counted (if property is not specified),
or whose property getter is called to return the collection to be
counted (if property is specified.
[RT Expr]
|
property |
The name of the property, of the bean specified by the
name attribute, whose getter method will return the
collection to be counted.
[RT Expr]
|
scope |
The bean scope within which to search for the JSP bean specified
by the name attribute. If not specified, the available
scopes are searched in ascending sequence.
[RT Expr]
|