public class ThemeTag extends MessageTag
Regards a HTML escaping setting, either on this tag instance, the page level, or the web.xml level.
If "code" isn't set or cannot be resolved, "text" will be used as default message.
Message arguments can be specified via the arguments
attribute or by using nested <spring:argument>
tags.
Theme
,
ThemeSource
,
MessageTag.setCode(java.lang.String)
,
MessageTag.setText(java.lang.String)
,
HtmlEscapingAwareTag.setHtmlEscape(boolean)
,
HtmlEscapeTag.setDefaultHtmlEscape(boolean)
,
WebUtils.HTML_ESCAPE_CONTEXT_PARAM
,
ArgumentTag
,
Serialized FormDEFAULT_ARGUMENT_SEPARATOR
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
ThemeTag() |
Modifier and Type | Method and Description |
---|---|
protected MessageSource |
getMessageSource()
Use the theme MessageSource for theme message resolution.
|
protected String |
getNoSuchMessageExceptionDescription(NoSuchMessageException ex)
Return exception message that indicates the current theme.
|
addArgument, doEndTag, doStartTagInternal, release, resolveArguments, resolveMessage, setArguments, setArgumentSeparator, setCode, setJavaScriptEscape, setMessage, setScope, setText, setVar, writeMessage
htmlEscape, isDefaultHtmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscape
doCatch, doFinally, doStartTag, getRequestContext
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected MessageSource getMessageSource()
getMessageSource
in class MessageTag
protected String getNoSuchMessageExceptionDescription(NoSuchMessageException ex)
getNoSuchMessageExceptionDescription
in class MessageTag