TagLib: Util

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:

Attribute

Description

Req'd?

name Name of the bean to use. No
source Name of the bean to copy from. Yes
property Name of the bean property to copy. Yes

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"/>