org.springframework.web.servlet.tags
Class HtmlEscapeTag

java.lang.Object
  extended by TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.springframework.web.servlet.tags.HtmlEscapeTag

public class HtmlEscapeTag
extends RequestContextAwareTag

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.

Since:
04.03.2003
Author:
Juergen Hoeller
See Also:
HtmlEscapingAwareTag.setHtmlEscape(java.lang.String)

Field Summary
private  java.lang.String defaultHtmlEscape
           
 
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
 
Constructor Summary
HtmlEscapeTag()
           
 
Method Summary
protected  int doStartTagInternal()
          Called by doStartTag to perform the actual work.
 void setDefaultHtmlEscape(java.lang.String 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, getRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultHtmlEscape

private java.lang.String defaultHtmlEscape
Constructor Detail

HtmlEscapeTag

public HtmlEscapeTag()
Method Detail

setDefaultHtmlEscape

public void setDefaultHtmlEscape(java.lang.String defaultHtmlEscape)
Set the default value for HTML escaping, to be put into the current PageContext.


doStartTagInternal

protected int doStartTagInternal()
                          throws 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:
JspException
See Also:
javax.servlet.jsp.tagext.TagSupport#doStartTag