| set | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description | The settag updates the specified property. | ||||||||||||||||||
| Tag Body | JSP | ||||||||||||||||||
| Restrictions | If the nameattribute is not specified then uses a parentbeantag to locate the bean on which to operate. Thepropertyspecifies what to update. Thevalueattribute specifies the string value
to update the property; theidattribute specifies the bean object value
to update the property. Eithervalueoridmust be
specified. | ||||||||||||||||||
| Attributes | The tag has the following attributes: 
 | ||||||||||||||||||
| Properties | None. | ||||||||||||||||||
| Example(s) | <%-- set the date time property on parent bean --%> <util:bean type="java.util.Date"> <util:set property="time" value="0"/> </util:bean> <%-- set the date time property on named bean --%> <util:bean id="date" type="java.util.Date"/> ... <util:set name="date" property="time" value="0"/> <%-- set a bean onto another bean property --%> <util:bean id="one" type="BeanOne"/> <util:bean id="two" type="Beantwo"/> <util:set name="two" id="one" property="one"/> | ||||||||||||||||||