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).
bodyContentid, pageContextEVAL_BODY_BUFFERED, EVAL_BODY_TAGEVAL_BODY_AGAINEVAL_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.
|
protected abstract String |
evalDefault()
Evaluates the "default" attribute.
|
protected abstract boolean |
evalEscapeXml()
Evaluates the "escapeXml" attribute.
|
protected abstract Object |
evalValue()
Evaluates the "value" attribute.
|
void |
release()
Release state.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, setPageContext, setParentpublic OutSupport()
public void release()
BodyTagSupportrelease in interface Tagrelease in class BodyTagSupportTag.release()public int doStartTag()
throws JspException
BodyTagSupportdoStartTag in interface TagdoStartTag in class BodyTagSupportJspException - if an error occurred while processing this tagTag.doStartTag()protected abstract Object evalValue() throws JspException
JspException - if there was a problem evaluating the expressionprotected abstract String evalDefault() throws JspException
JspException - if there was a problem evaluating the expressionprotected abstract boolean evalEscapeXml()
throws JspException
JspException - if there was a problem evaluating the expressionpublic int doAfterBody()
throws JspException
BodyTagSupportdoAfterBody in interface IterationTagdoAfterBody in class BodyTagSupportJspException - if an error occurred while processing this tagBodyTagSupport.doInitBody(),
IterationTag.doAfterBody()public int doEndTag()
throws JspException
BodyTagSupportdoEndTag in interface TagdoEndTag in class BodyTagSupportJspException - if an error occurred while processing this tagTag.doEndTag()Copyright © 2018 JBoss by Red Hat. All rights reserved.