The set tag updates the specified property or field.
JSP
If the name attribute is not specified then uses a parent bean tag to locate the bean on which to operate. One of property or field attributes must be used to specify what to update. Either the value or id attributes is used to specify the value of the property to update.
The tag has the following attributes for which the Required value is “No”:
Name of the datetime bean to use.
Name of the property to update.
Name of the java.util.Calendar field to update.
String value of the property to update.
Bean object value of the property to update.
Specifies the edit bean that will be applied to value prior to storage.
None.
<%-- set the event summary property --%> <cal:event> <cal:set property="summary" value="new summary"/> </cal:event> <%-- set the datetime HOURS field --%> <cal:datetime> <cal:set field="HOURS" value="10"/> </cal:datetime> <%-- set the event start time to a datetime bean --%> <cal:datetime id="now"/> <cal:event> <cal:set property="startTime" id="now"/> </cal:event>