Class LocaleTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
wt.taglib.util.LocaleTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class LocaleTag extends jakarta.servlet.jsp.tagext.TagSupport
JSP LocaleTag returns the most appropriate Windchill supported Locale using SessionHelper. If no matching locale is found, a locale will be created based on the configured Windchill server locale. For example, if the Windchill Server is German, and the browser language list does not have a supported locale, then a German locale will be returned.

Example:
<%@ taglib uri="http://www.windchill.com/taglib/util" prefix="util" %>
<img src="title_<util:locale>.gif">


For English-US: <img src="title_en_US.gif">
For French-Canadian: <img src="title_fr.gif">
For German: <img src="title_de.gif">
Tag Attributes
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, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait