Class SetPropertiesTag

  • All Implemented Interfaces:
    DynaTag, Tag

    public class SetPropertiesTag
    extends MapTagSupport
    A tag which sets the bean properties on the given bean. So if you used it as follows, for example using the <j:new> tag.
     <j:new className="com.acme.Person" var="person"/>
     <j:setProperties object="${person}" name="James" location="${loc}"/>
     
    Then it would set the name and location properties on the bean denoted by the expression ${person}.

    This tag can also be nested inside a bean tag such as the <useBean> tag or a JellySwing tag to set one or more properties, maybe inside some conditional logic.

    Version:
    $Revision: 155420 $
    Author:
    James Strachan