java.util.Hashtable table = new java.util.Hashtable();
<bean:size id="size" collection="<%=table%>"/>
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 bean
Attribute Description Name
A runtime expression that evaluates to an array, a
Collection, or a Map. collection
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 id counted.
(REQUIRED) (RT EXPR)
The name of the JSP bean (optionally constrained
to the scope specified by the scope attribute)
name 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.
The name of the property, of the bean specified by the name attribute, whose getter method will
property return the collection to be counted.
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 scope ascending sequence.