collection:createList
Creates an instance of a java.util.List
object. It will default create
a java.util.ArrayList
. If other types of Lists are desired, this must be
specified in the type attribute.
The list will be defined as an attribute accessible to the remainder of the current page.
Syntax
<collection:createList id="..." toScope="..."? type="..."?/>
Attributes
id
, mandatory, no runtime expressionsSpecifies the name of the scripting variable (and associated page scope attribute) that will be made available with the value of the specified property.
toScope
Identify the JSP scope within which the List will be created. If not specified, then the bean is created in page scope.
Allowed values are:
type
The type of list to create. If not specified there will be created an
java.util.ArrayList
.