Package wt.taglib.util
Class MessageTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
wt.taglib.util.MessageTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class MessageTag
extends jakarta.servlet.jsp.tagext.TagSupport
JSP MessageTag retrieves a localized message from a resource bundle. The locale
is calculated from the HTTP Accept-Language header and the most appropriate
Windchill supported locale is used. If the language argument is supplied,
the locale is calculated from this and the optional country and variant
arguments.
Example:
For English-US:
For French-Canadian:
For German:
Supported API: true
Extendable: false
Example:
<%@ taglib uri="http://www.windchill.com/taglib/util" prefix="util" %>
<a href="home.jsp"><util:message rb="wt.clients.util.UtilRB" key="26"/></a>For English-US:
<a href="home.jsp">Windchill Home</a>For French-Canadian:
<a href="home.jsp">Page d'accueil Windchill</a>For German:
<a href="home.jsp">Windchill Startseite</a>| Tag Attributes | ||
rbinvalid input: '<'/code |
required | Base resource bundle containing the message. |
keyinvalid input: '<'/code |
required | Key associated with the requested message. |
languageinvalid input: '<'/code |
optional | Set language code for desired locale, which will either be the empty string or a lowercase ISO 639 code. In the absence of this argument, the Accept-Language header will be used in the retrieval of an acceptible locale. |
countryinvalid input: '<'/code |
optional | Set the country/region code for desired locale, which will either be the
empty string or an uppercase ISO 3166 2-letter code. |
variantinvalid input: '<'/code |
optional | Set the variant code for desired locale. |
Supported API: true
Extendable: false
- Since:
- Windchill R6.0
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Method Summary
Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue