Package com.aspectran.web.support.tags
Class HtmlEscapeTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.aspectran.web.support.tags.CurrentActivityAwareTag
-
- com.aspectran.web.support.tags.HtmlEscapeTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class HtmlEscapeTag extends CurrentActivityAwareTag
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. - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_HTML_ESCAPE_SETTING_NAMEHTML escape parameter at the servlet context level (i.e.-
Fields inherited from class com.aspectran.web.support.tags.CurrentActivityAwareTag
logger
-
-
Constructor Summary
Constructors Constructor Description HtmlEscapeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoStartTagInternal()Called 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 com.aspectran.web.support.tags.CurrentActivityAwareTag
doCatch, doFinally, doStartTag, getCurrentActivity
-
-
-
-
Field Detail
-
DEFAULT_HTML_ESCAPE_SETTING_NAME
public static final java.lang.String DEFAULT_HTML_ESCAPE_SETTING_NAME
HTML escape parameter at the servlet context level (i.e. a context-param inweb.xml): "defaultHtmlEscape".- See Also:
- Constant Field Values
-
-
Method Detail
-
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 javax.servlet.jsp.JspExceptionDescription copied from class:CurrentActivityAwareTagCalled by doStartTag to perform the actual work.- Specified by:
doStartTagInternalin classCurrentActivityAwareTag- Returns:
- same as TagSupport.doStartTag
- Throws:
javax.servlet.jsp.JspException- See Also:
TagSupport.doStartTag()
-
-