dsp:valueof
renders a value in a bean property or page parameter. You can specify a default value in between the start and end dsp:valueof
tags. If you do not intend to use a default, make sure there is no text, space, or carriage return separating the tags.
Attributes
ValueMadeAvailable:beanorparam(Required)
These attributes define the bean property, page parameter, or constant that you want to display.
Attribute | Description |
---|---|
| Nucleus path, component name, and property name that you want to retrieve. |
| Page parameter that you want to retrieve. |
| Constant value that you want to retrieve. |
TagConverters
The tag converter tools let you convert a value into the format of your choice:
number
currency
(includingcurrencyConversion
,euro
,reverse
, andsymbol
)date
maxdate
andmindate
nullable
creditCard
(includinggroupingsize
,maskcharacter
, andnumcharsunmasked
)valueishtml
For more information about formats, see Tag Converters.
Example
<dsp:valueof bean="Student_01.age" converter="number" format="##"/>
<dsp:valueof param="currentName">Happy User</dsp:valueof>
In this example, the age
property in the Student_01
component is retrieved and converted into a format that renders a number as this: 35. The second tag gets the value of the currentName
page parameter, but if no value exists, it displays Happy User
instead.