Class Name

atg.commerce.catalog.DisplaySkuProperties

Component(s)

/atg/commerce/catalog/DisplaySkuProperties

The DisplaySkuProperties servlet bean takes a SKU item as input and renders a set of specified properties as a concatenated string. For example, you could use DisplaySkuProperties to display the displayName, price, and description properties of the SKU.

Input Parameters

sku (Required)
The SKU item.

delimeter
Character to use as a separator between the different property values in the concatenated string. If you omit this parameter, then a space is used as the delimiter.

propertyList or product
You can use the propertyList parameter to specify the list of SKU properties to display as a comma-separated list. Or, you can use the product parameter to specify the parent product of the SKU. In the latter case, the list of properties is takes from the product’s displayableSkuAttributes property.

displayElementName
The name to use as the parameter set within the output open parameter.

Output Parameter

displayElement
The concatenated text string containing the property values. (You can specify a different name for this parameter through the optional displayElementName input parameter.)

Open Parameters

output
The open parameter rendered if the output text string is not empty.

empty
The open parameter rendered if the output text string is empty.

Example

The following example shows the JSP code for the DisplaySkuProperties servlet bean. In the example, the SKU is passed to DisplaySkuProperties by another servlet bean in which DisplaySkuProperties is nested.

<dsp:droplet name="/atg/commerce/catalog/DisplaySkuProperties">
   <dsp:param value=" | " name="delimiter"/>
   <dsp:param param="element" name="sku"/>
   <dsp:param value="displayName,listPrice,description" name="propertyList"/>
   <dsp:oparam name="output">
   <p><dsp:valueof param="displayElement"/>
   </dsp:oparam>
   <dsp:oparam name="empty">
   <p>There is no information available about this item.
   </dsp:oparam>
</dsp:droplet>
 
loading table of contents...