set
|
Description |
The set tag updates the specified property or field. |
Tag Body |
JSP |
Restrictions |
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. |
Attributes |
The tag has the following attributes:
Attribute |
Description |
Req'd? |
name |
Name of the datetime bean to use. |
No |
property |
Name of the property to update. |
No |
field |
Name of the java.util.Calendar field to update. |
No |
value |
String value of the property to update. |
No |
id |
Bean object value of the property to update. |
No |
edit
|
Specifies the edit bean that will be
applied to value prior to storage.
|
No
|
|
Properties |
None.
|
Example(s) |
<%-- 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>
|