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

bean

Nucleus path, component name, and property name that you want to set.

param

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

beanvalue

Nucleus path, component name, and property name that is saved to the destination attribute.

param="name" beanvalue="Student_01.name"

paramvalue

Page parameter that is saved to the destination attribute.

bean="Student_01.enrollmentDate"
paramvalue="today"

value

Constant value or expression that is saved to the destination attribute.

bean="Student_01.juniorHighSchool"
value="Roosevelt"

bean="Student_01.juniorHighSchool"
value="true"

TagConverters

The tag converter tools let you convert a value into the format of your choice:

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.

 
loading table of contents...