Logic Tags
Tag data


This tag creates a data object (a collection of name value pairs) and stores it as an editable shared variable using the key supplied in the tag attributes. This tag can also be used inside the collection tag, in which case the key attribute is not necessary and the name value pairs will be stored directly in the parent collection. The key attribute is required otherwise. The XML attributes (non pt: attributes) for this tag are used as name value pairs for the data object. It is stored in in Portlet Request scope by default. This variable can be used in attribute value replacement or with the value tag.

Example:
<pt:logic.collection pt:key="testcollection">
<pt:logic.data url="http://www.myco.com" name="My company"/>
<pt:logic.data url="http://www.otherco.com" name="Other company"/>
</pt:logic.collection>


Tag Information
Tag Namedata

Attributes
NameTypeRequiredDefault ValueDescription
keystringfalsenullThe key used to store the data object in memory. This attribute is required unless this tag is being used inside a collection tag. If this attribute is present and this tag is being used inside a collection tag, this attribute will take precedence and the data will be stored in the collection specified in the attribute.
scopestringfalseportlet requestThe scope used to store the data object. See the Logic tag library description for details about valid scope arguments.


Copyright 2005 Plumtree Software, Inc.