bean
Tag size


Define a bean containing the number of elements in a Collection or Map.

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:



Tag Information
Tag Classorg.apache.struts.taglib.bean.SizeTag
TagExtraInfo Classorg.apache.struts.taglib.bean.SizeTei
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
collectionfalsetruejava.lang.Object

A runtime expression that evaluates to an array, a Collection, or a Map.

idtruefalsejava.lang.String

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.

namefalsetruejava.lang.String

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.

propertyfalsetruejava.lang.String

The name of the property, of the bean specified by the name attribute, whose getter method will return the collection to be counted.

scopefalsetruejava.lang.String

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.


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.