Class OutSupport
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.core.OutSupport
-
- All Implemented Interfaces:
java.io.Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
- Direct Known Subclasses:
OutTag
public abstract class OutSupport extends BodyTagSupport
Support for handlers of the <out> tag, which simply evalutes and prints the result of the expression it's passed. If the result is null, we print the value of the 'default' attribute's expression or our body (which two are mutually exclusive, although this constraint is enforced outside this handler, in our TagLibraryValidator).
- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description OutSupport()
Constructs a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doAfterBody()
After the body evaluation: do not reevaluate and continue with the page.int
doEndTag()
Default processing of the end tag returning EVAL_PAGE.int
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED.void
release()
Release state.-
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, setPageContext, setParent, setValue
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
-
-
-
Method Detail
-
release
public void release()
Description copied from class:BodyTagSupport
Release state.- Specified by:
release
in interfaceTag
- Overrides:
release
in classBodyTagSupport
- See Also:
Tag.release()
-
doStartTag
public int doStartTag() throws JspException
Description copied from class:BodyTagSupport
Default processing of the start tag returning EVAL_BODY_BUFFERED.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Returns:
- EVAL_BODY_BUFFERED
- Throws:
JspException
- if an error occurred while processing this tag- See Also:
Tag.doStartTag()
-
doAfterBody
public int doAfterBody() throws JspException
Description copied from class:BodyTagSupport
After the body evaluation: do not reevaluate and continue with the page. By default nothing is done with the bodyContent data (if any).- Specified by:
doAfterBody
in interfaceIterationTag
- Overrides:
doAfterBody
in classBodyTagSupport
- Returns:
- SKIP_BODY
- Throws:
JspException
- if an error occurred while processing this tag- See Also:
BodyTagSupport.doInitBody()
,IterationTag.doAfterBody()
-
doEndTag
public int doEndTag() throws JspException
Description copied from class:BodyTagSupport
Default processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classBodyTagSupport
- Returns:
- EVAL_PAGE
- Throws:
JspException
- if an error occurred while processing this tag- See Also:
Tag.doEndTag()
-
-