public 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).
| Modifier and Type | Field and Description |
|---|---|
protected String |
def |
protected boolean |
escapeXml |
protected Object |
value |
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 |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED.
|
static void |
out(PageContext pageContext,
boolean escapeXml,
Object obj)
Outputs text to pageContext's current JspWriter.
|
void |
release()
Release state.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, setPageContext, setParentprotected Object value
protected String def
protected boolean escapeXml
public 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()public int doEndTag()
throws JspException
BodyTagSupportdoEndTag in interface TagdoEndTag in class BodyTagSupportJspException - if an error occurred while processing this tagTag.doEndTag()public static void out(PageContext pageContext, boolean escapeXml, Object obj) throws IOException
IOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.