Class HtmlEscapeTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.springframework.web.servlet.tags.RequestContextAwareTag
org.springframework.web.servlet.tags.HtmlEscapeTag
- All Implemented Interfaces:
IterationTag,JspTag,Tag,TryCatchFinally,Serializable
The
<htmlEscape> tag sets default HTML escape value for the current
page. The actual value can be overridden by escaping-aware tags.
The default is "false".
Note: You can also set a "defaultHtmlEscape" web.xml context-param. A page-level setting overrides a context-param.
| Attribute | Required? | Runtime Expression? | Description |
|---|---|---|---|
| defaultHtmlEscape | true | true | Set the default value for HTML escaping, to be put into the current PageContext. |
- Since:
- 04.03.2003
- Author:
- Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTEFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intCalled by doStartTag to perform the actual work.voidsetDefaultHtmlEscape(boolean defaultHtmlEscape) Set the default value for HTML escaping, to be put into the current PageContext.Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doFinally, doStartTag, getRequestContextMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
HtmlEscapeTag
public HtmlEscapeTag()
-
-
Method Details
-
setDefaultHtmlEscape
public void setDefaultHtmlEscape(boolean defaultHtmlEscape) Set the default value for HTML escaping, to be put into the current PageContext. -
doStartTagInternal
Description copied from class:RequestContextAwareTagCalled by doStartTag to perform the actual work.- Specified by:
doStartTagInternalin classRequestContextAwareTag- Returns:
- same as TagSupport.doStartTag
- Throws:
JspException- See Also:
-