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, setAttributegetAttributeTypefindAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBody, getContext, getParent, invokeBody, setBody, setContext, setParentpublic void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tagprotected void setBeanProperties(Object bean, Map attributes) throws JellyTagException
JellyTagExceptionCopyright © 2012 Apache Software Foundation. All Rights Reserved.