Name

Localization Context

Synopsis

The localization context setting can be set to a String value containing the name of the default resource bundle base name. The formatting actions then locate the locale-specific version of this bundle. The <fmt:setBundle> sets the variable to an instance of the LocalizationContext class, which contains references to both a locale and a resource bundle for a locale.

Details

Variable name:

javax.servlet.jsp.jstl.fmt.localizationContext

Java constant:

Config.FMT_LOCALIZATION_CONTEXT

Java type:

String or javax.servlet.jsp.jstl.fmt.LocalizationContext

Set by:

<fmt:setBundle>, context parameter or custom code

Used by:

<fmt:message>, <fmt:formatNumber>, <fmt:parseNumber>, <fmt:formatDate>, and <fmt:parseDate>

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.