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 intdoAfterBody()After the body evaluation: do not reevaluate and continue with the page.intdoEndTag()Default processing of the end tag returning EVAL_PAGE.intdoStartTag()Default processing of the start tag returning EVAL_BODY_BUFFERED.voidrelease()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:BodyTagSupportRelease state.- Specified by:
releasein interfaceTag- Overrides:
releasein classBodyTagSupport- See Also:
Tag.release()
-
doStartTag
public int doStartTag() throws JspExceptionDescription copied from class:BodyTagSupportDefault processing of the start tag returning EVAL_BODY_BUFFERED.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Returns:
- EVAL_BODY_BUFFERED
- Throws:
JspException- if an error occurred while processing this tag- See Also:
Tag.doStartTag()
-
doAfterBody
public int doAfterBody() throws JspExceptionDescription copied from class:BodyTagSupportAfter the body evaluation: do not reevaluate and continue with the page. By default nothing is done with the bodyContent data (if any).- Specified by:
doAfterBodyin interfaceIterationTag- Overrides:
doAfterBodyin 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 JspExceptionDescription copied from class:BodyTagSupportDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Returns:
- EVAL_PAGE
- Throws:
JspException- if an error occurred while processing this tag- See Also:
Tag.doEndTag()
-
-