collection:createSet
Creates an instance of a java.util.Set
object. It will default create
a java.util.HashSet
. If other types of Lists are desired, this must be
specified in the type attribute.
The Set will be defined as an attribute accessible to the remainder of the current page.
Syntax
<collection:createSet 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 Set.
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
Which type of
java.util.Set
to create. If not specified ajava.util.HashSet
will be created.