Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

copy

Description

This tag copies the specified property value from the source bean to the target bean.

Tag Body

Empty

Restrictions

If the name attribute is not specified then uses a parent bean tag to locate the bean on which to operate.

Attributes

This tag has the following attributes for which the Required value is “Yes” and “No”:

name

Name of the bean to use.

source

Name of the bean to copy from.

property

Name of the bean property to copy.

Properties

None.

Example(s)
<%-- copy 'time' property from d1 to d2 --%>
<util:bean name="d1" type="java.util.Date"/>
...
<util:bean name="d2" type="java.util.Date"/>
...
<util:copy name="d2" property="time" source="d1"/>