hst-core-tags
Tag messagesReplace


This tag replaces all the variables in the body content by the either current locale context or provided resource bundle.

Example:
<%-- Replaces all the variables (e.g, ${company.name}) in the html output --%> <hst:messagesReplace> <hst:html hippohtml="${document.body}" /> </hst:messagesReplace>


Tag Information
Tag Classorg.hippoecm.hst.tag.MessagesReplaceTag
TagExtraInfo Classorg.hippoecm.hst.tag.MessagesReplaceTag$TEI
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
varfalsetruejava.lang.StringThe variable name of the replaced string
bundlefalsetruejava.util.ResourceBundleThe resource bundle used when replacing messages. If not specified, then the default localization context is used to find a bundle.
basenamefalsetruejava.lang.StringThe resource bundle basename to find a resource bundle used when replacing messages. If not specified, then the default localization context is used to find a bundle.
localeStringfalsetruejava.lang.StringThe locale string to determine the locale to choose a proper resource bundle. If not specified, then the current response locale or default locale is used.
localefalsetruejava.util.LocaleThe locale object to determine the locale to choose a proper resource bundle. If not specified, then the current response locale or default locale is used.
variablePrefixfalsetruejava.lang.StringThe variable reference prefix. The default value is "${". If the body content content contains variable references surrounded by variablePrefix and variableSuffix, then this tag replaces each variable reference by the value found in either the current locale context or the provided resource bundle. Note that if you specify the value "${" yourself, you need to use "\${"
variableSuffixfalsetruejava.lang.StringThe variable reference suffix. The default value is "}". If the body content content contains variable references surrounded by variablePrefix and variableSuffix, then this tag replaces each variable reference by the value found in either the current locale context or the provided resource bundle.
escapeCharfalsetruejava.lang.CharacterThe variable reference escape character. The default value is '\'. If this escape character is placed before a variable reference, the variable reference is ignored and won't be replaced.
scopefalsefalsejava.lang.StringScope of var or the localization context configuration variable. "page", "request", "session" or "application". "page" scope by default.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.