com.opensymphony.module.sitemesh.taglib.decorator
Class PropertyTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.module.sitemesh.taglib.AbstractTag
com.opensymphony.module.sitemesh.taglib.decorator.PropertyTag
- All Implemented Interfaces:
- BodyTag, IterationTag, RequestConstants, Serializable, Tag
- public class PropertyTag
- extends AbstractTag
Write property of Page to out.
- Version:
- $Revision: 1.3 $
- Author:
- Joe Walnes
- See Also:
Page.getProperty(java.lang.String),
Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id |
|
Method Summary |
int |
doEndTag()
To be implemented by all empty tags. |
void |
setDefault(String defaultValue)
Value to write if no property matching key is found (optional). |
void |
setProperty(String propertyName)
Key of property to write. |
void |
setWriteEntireProperty(String writeEntireProperty)
When begins with y, t or 1, the full attribute (name + value) is written. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyName
private String propertyName
defaultValue
private String defaultValue
writeEntireProperty
private boolean writeEntireProperty
PropertyTag
public PropertyTag()
setProperty
public void setProperty(String propertyName)
- Key of property to write.
setDefault
public void setDefault(String defaultValue)
- Value to write if no property matching key is found (optional).
setWriteEntireProperty
public final void setWriteEntireProperty(String writeEntireProperty)
- When begins with y, t or 1, the full attribute (name + value) is written.
doEndTag
public final int doEndTag()
- Description copied from class:
AbstractTag
- To be implemented by all empty tags.
- Specified by:
doEndTag in interface Tag- Specified by:
doEndTag in class AbstractTag