The syntax for this plug-in is as follows:
[Plugin:RequestAttribute key="" value="" defaultValue=""]
This plug-in uses the following attributes:
This attribute is mandatory. Use this attribute to define the name that is used to retrieve or set an attribute for the request. value
Use this attribute to define the value of the attribute that you want to be set. If an attribute with the same name exists on the request, that attribute is overwritten with the new value. If you want to set an attribute on the request, this attribute is mandatory. defaultValue
This attribute is optional. Use this attribute to specify the value that is used when an attribute from the request is not defined or has a value of null. Note:
plug-in is available with Version 188.8.131.52 of IBM
® Web Content Manager.
Parent topic: Digital Data Connector rendering plug-ins
- The following plug-in tag writes out the string representation of the request attribute with the name key1:
- The following plug-in tag writes out value1 only when the key1 attribute does not exist on the request or the attribute value is null. Otherwise, the actual value of the key1 attribute is used.
[Plugin:RequestAttribute key="key1" defaultValue="value1"]
- The following plug-in tag sets the request attribute key1 to have the value value1.
[Plugin:RequestAttribute key="key1" value="value1"]
- The following plug-in tag removes the request attribute key1 by passing an empty value attribute.
[Plugin:RequestAttribute key="key1" value=""]