public class SetPropertiesTag extends MapTagSupport
<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.
body, context, parent
Constructor and Description |
---|
SetPropertiesTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.
|
protected void |
setBeanProperties(Object bean,
Map attributes)
Sets the properties on the bean.
|
createAttributes, getAttributes, setAttribute
getAttributeType
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tag
protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException
JellyTagException
Copyright © 2014 Apache Software Foundation. All rights reserved.