dsp:setvalue lets you set a bean property or page parameter with a value copied from another bean property, page parameter, or constant.
Attributes
DestinationValue:beanorparam(Required)
These attributes define the bean property or page parameter that you want to set.
Attribute | Description |
|---|---|
| Nucleus path, component name, and property name that you want to set. |
| Page parameter that you want to set. |
SourceValue:beanvalue,paramvalue,orvalue
These attributes provide a value to the destination attribute (bean or param). If no source value is included, a null value is assigned.
Attribute | Description | Example |
|---|---|---|
| Nucleus path, component name, and property name that is saved to the destination attribute. |
|
| Page parameter that is saved to the destination attribute. |
|
| Constant value or expression that is saved to the destination attribute. |
|
TagConverters
The tag converter tools let you convert a value into the format of your choice:
numbercurrency(includingcurrencyConversion,euro,reverse, andsymbol)datemaxdateandmindatenullablecreditCard(includinggroupingsize,maskcharacter, andnumcharsunmasked)valueishtml
You use a tag converter when you want to save a value in a different format. For more information, see Tag Converters.
Example
<dsp:setvalue bean="Student_01.name" paramvalue="currentName"/>
<dsp:setvalue param="graduationDate" value="June 12, 2002"
date="M/dd/yyyy/">
This example assumes that the currentName page parameter has been previously set to a value. That value is copied to the name property of the Student_01 component by the first dsp:setvalue tag. The second tag sets the constant June 12, 2002 to page parameter graduationDate and formats that date so it is saved as 6/12/2002.

