<set-property> element

Appears in: <bean>

Allows a property of a helper bean to be set to an OGNL expression (evaluated on the containing component or page).

The value to be assigned to the bean property can be specified using the expression attribute, or as the content of the <set-property> element itself.

Figure C.31. <set-property> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the helper bean property to set.
expressionstringno The OGNL expression used to set the property.