java.lang.Object | ||||
↳ | TagSupport | |||
↳ | org.springframework.web.servlet.tags.RequestContextAwareTag | |||
↳ | org.springframework.web.servlet.tags.HtmlEscapingAwareTag | |||
↳ | org.springframework.web.servlet.tags.EscapeBodyTag |
Custom JSP tag to escape its enclosed body content, applying HTML escaping and/or JavaScript escaping.
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.
Provides a "javaScriptEscape" property for specifying whether to apply JavaScript escaping. Can be combined with HTML escaping or used standalone.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set JavaScript escaping for this tag, as boolean value.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called by doStartTag to perform the actual work.
| |||||||||||
Read the unescaped body content from the page.
| |||||||||||
Write the escaped body content to the page.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag | |||||||||||
From class org.springframework.web.servlet.tags.RequestContextAwareTag | |||||||||||
From class
java.lang.Object
|
JspException |
---|
Set JavaScript escaping for this tag, as boolean value. Default is "false".
JspException |
---|
Called by doStartTag to perform the actual work.
Read the unescaped body content from the page.
IOException | if reading failed |
---|
Write the escaped body content to the page.
Can be overridden in subclasses, e.g. for testing purposes.
content | the content to write |
---|
IOException | if writing failed |
---|