public abstract 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).
| Constructor and Description |
|---|
OutSupport()
Constructs a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody() |
int |
doEndTag() |
int |
doStartTag() |
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() |
doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic OutSupport()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionprotected abstract Object evalValue() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionprotected abstract String evalDefault() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionprotected abstract boolean evalEscapeXml()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCopyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.