Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

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 for which the Required value is “No”:

name

Name of the datetime bean to use.

property

Name of the property to update.

field

Name of the java.util.Calendar field to update.

value

String value of the property to update.

id

Bean object value of the property to update.

edit

Specifies the edit bean that will be applied to value prior to storage.

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>