The size tag creates a java.lang.Integer that contains the number of elements in the specified array, collection or Map, and creates a scoped variable referencing the Integer. The list of attributes for this tag is given in Table 8.11.
| Attribute | Description |
|---|---|
| collection | The scoped variable referencing an array, a collection, or a Map whose number of elements will be stored in a java.lang.Integer object. |
| id | A required attribute that specifies the name of a page-scoped variable that will be created to reference the java.lang.Integer that contains the size of the specified array, collection, or Map. |
| name | If property is present, name specifies a scoped object containing the array, collection, or Map, whose number of elements will be counted. Otherwise, name specifies the array, collection, or Map itself. |
| property | The property of the scoped object specified by the name attribute, that will return the collection to be counted. |
| scope | The scope of the scoped variable specified by the name attribute |
Table 8.11: The size tag’s attributes