public abstract class HtmlEscapingAwareTag extends RequestContextAwareTag
Provides a "htmlEscape" property for explicitly specifying whether to
apply HTML escaping. If not set, a page-level default (e.g. from the
HtmlEscapeTag) or an application-wide default (the "defaultHtmlEscape"
context-param in web.xml
) is used.
setHtmlEscape(java.lang.String)
,
HtmlEscapeTag
,
RequestContext.isDefaultHtmlEscape()
,
WebUtils.isDefaultHtmlEscape(javax.servlet.ServletContext)
,
Serialized Formlogger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
HtmlEscapingAwareTag() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isDefaultHtmlEscape()
Return the applicable default HTML escape setting for this tag.
|
protected boolean |
isHtmlEscape()
Return the HTML escaping setting for this tag,
or the default setting if not overridden.
|
void |
setHtmlEscape(String htmlEscape)
Set HTML escaping for this tag, as boolean value.
|
doCatch, doFinally, doStartTag, doStartTagInternal, getRequestContext
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
public void setHtmlEscape(String htmlEscape) throws JspException
JspException
HtmlEscapeTag.setDefaultHtmlEscape(java.lang.String)
protected boolean isHtmlEscape()
isDefaultHtmlEscape()
protected boolean isDefaultHtmlEscape()
The default implementation checks the RequestContext's setting,
falling back to false
in case of no explicit default given.