collection:createMap

Creates an instance of a java.util.Map object. It will default create a java.util.HashMap. If other types of Lists are desired, this must be specified in the type attribute.

The Map will be defined as an attribute accessible to the remainder of the current page.

Syntax
<collection:createMap
   id="..."
   toScope="..."?
   type="..."?/>
Attributes
id, mandatory, no runtime expressions

Specifies 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

Which type of map to create. If this is not specified a java.util.HashMap will be created.