public class OutSupport
extends jakarta.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 java.lang.String |
def |
protected boolean |
escapeXml |
protected java.lang.Object |
value |
| Constructor and Description |
|---|
OutSupport()
Constructs a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
static void |
out(jakarta.servlet.jsp.PageContext pageContext,
boolean escapeXml,
java.lang.Object obj)
Outputs text to pageContext's current JspWriter.
|
void |
release() |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected java.lang.Object value
protected java.lang.String def
protected boolean escapeXml
public OutSupport()
public void release()
release in interface jakarta.servlet.jsp.tagext.Tagrelease in class jakarta.servlet.jsp.tagext.BodyTagSupportpublic int doStartTag()
throws jakarta.servlet.jsp.JspException
doStartTag in interface jakarta.servlet.jsp.tagext.TagdoStartTag in class jakarta.servlet.jsp.tagext.BodyTagSupportjakarta.servlet.jsp.JspExceptionpublic int doEndTag()
throws jakarta.servlet.jsp.JspException
doEndTag in interface jakarta.servlet.jsp.tagext.TagdoEndTag in class jakarta.servlet.jsp.tagext.BodyTagSupportjakarta.servlet.jsp.JspExceptionpublic static void out(jakarta.servlet.jsp.PageContext pageContext,
boolean escapeXml,
java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionCopyright © 2019 Eclipse Foundation. All rights reserved.