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).
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
OutSupport()
Constructs a new handler.
|
Modifier and Type | Method and 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.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
public OutSupport()
public void release()
BodyTagSupport
release
in interface Tag
release
in class BodyTagSupport
Tag.release()
public int doStartTag() throws JspException
BodyTagSupport
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if an error occurred while processing this tagTag.doStartTag()
public int doAfterBody() throws JspException
BodyTagSupport
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if an error occurred while processing this tagBodyTagSupport.doInitBody()
,
IterationTag.doAfterBody()
public int doEndTag() throws JspException
BodyTagSupport
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if an error occurred while processing this tagTag.doEndTag()
Copyright © 2010 - 2020 Adobe. All Rights Reserved