webwork.view.taglib
Class PropertyTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bywebwork.view.taglib.WebWorkBodyTagSupport
              extended bywebwork.view.taglib.BasicPropertyTag
                  extended bywebwork.view.taglib.PropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class PropertyTag
extends BasicPropertyTag

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.19 $
Author:
Rickard Öberg (rickard@dreambean.com), Matt Baldree (matt@smallleap.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class webwork.view.taglib.BasicPropertyTag
escape, hadBody, log, valueAttr
 
Fields inherited from class webwork.view.taglib.WebWorkBodyTagSupport
stack
 
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
 
Constructor Summary
PropertyTag()
           
 
Method Summary
protected  boolean shouldEscape()
          The property tag should escape IF the escape value has been set to true, OR if the tag has a body and there is no set escape value.
 
Methods inherited from class webwork.view.taglib.BasicPropertyTag
doAfterBody, doEndTag, doStartTag, setEscape, setValue
 
Methods inherited from class webwork.view.taglib.WebWorkBodyTagSupport
findString, findValue, getStack, release, setPageContext, setParent, toString
 
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
 

Constructor Detail

PropertyTag

public PropertyTag()
Method Detail

shouldEscape

protected boolean shouldEscape()
The property tag should escape IF the escape value has been set to true, OR if the tag has a body and there is no set escape value. CHANGE THIS METHOD ON PAIN OF DEATH -mike :)

Overrides:
shouldEscape in class BasicPropertyTag
See Also:
BasicPropertyTag.shouldEscape()


Copyright © 2001-2003 WebWork All Rights Reserved.