webwork.view.taglib
Class BasicPropertyTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
webwork.view.taglib.WebWorkBodyTagSupport
webwork.view.taglib.BasicPropertyTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- PropertyTag
- public class BasicPropertyTag
- extends WebWorkBodyTagSupport
Access the value of a named property. By default (implicitly),
this tag will escape its contents if it does *not* have a body.
If it does have a body, the tag will not escape the contents.
You can explicitly tell the tag to escape or not.
Quoted text that is escaped will have its quotes stripped off.
- Version:
- $Revision: 1.7 $
- Author:
- Rickard Öberg (rickard@dreambean.com), Matt Baldree (matt@smallleap.com)
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Boolean |
escape
|
protected boolean |
hadBody
|
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
valueAttr
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent |
log
protected static org.apache.commons.logging.Log log
valueAttr
protected java.lang.String valueAttr
escape
protected java.lang.Boolean escape
hadBody
protected boolean hadBody
BasicPropertyTag
public BasicPropertyTag()
setValue
public void setValue(java.lang.String inName)
setEscape
public void setEscape(boolean inEscape)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
shouldEscape
protected boolean shouldEscape()
- The BasicPropertyTag should escape IF the escape value has been set to true. At
all other times it will false (ie not escape data).
CHANGE THIS METHOD ON PAIN OF DEATH -mike :)
- See Also:
PropertyTag.shouldEscape()
Copyright © 2001-2003 WebWork All Rights Reserved.