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:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, jakarta.servlet.jsp.tagext.TryCatchFinally, Serializable

public class HtmlEscapeTag extends RequestContextAwareTag
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 Summary
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:
  • 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

      protected int doStartTagInternal() throws jakarta.servlet.jsp.JspException
      Description copied from class: RequestContextAwareTag
      Called by doStartTag to perform the actual work.
      Specified by:
      doStartTagInternal in class RequestContextAwareTag
      Returns:
      same as TagSupport.doStartTag
      Throws:
      jakarta.servlet.jsp.JspException
      See Also:
      • TagSupport.doStartTag()