public class OutSupport
extends javax.servlet.jsp.tagext.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 |
Constructor and Description |
---|
OutSupport()
Constructs a new handler.
|
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
static void |
out(javax.servlet.jsp.PageContext pageContext,
boolean escapeXml,
Object obj)
Outputs text to pageContext's current JspWriter.
|
void |
release() |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected Object value
protected String def
protected boolean escapeXml
public OutSupport()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public static void out(javax.servlet.jsp.PageContext pageContext, boolean escapeXml, Object obj) throws IOException
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.