Integrating Custom I18N Actions
The default locale, resource bundle, and time zone for the JSTL I18N actions can be specified through four configuration settings, described in Tables Table 22-1 through Table 22-4.
Table 22-1. Locale configuration setting
Variable name: |
javax.servlet.jsp.jstl.fmt.locale |
Java constant: |
Config.FMT_LOCALE |
Java type: |
|
Set by: |
|
Used by: |
|
Table 22-2. Fallback locale configuration setting
Variable name: |
javax.servlet.jsp.jstl.fmt.fallbackLocale |
Java constant: |
Config.FMT_FALLBACK_LOCALE |
Java type: |
|
Setby: |
Context parameter or custom code |
Used by: |
|
Table 22-3. Localization context configuration setting
Variable name: |
javax.servlet.jsp.jstl.fmt.localizationContext |
Java constant: |
Config.FMT_LOCALIZATION_CONTEXT |
Java type: |
|
Set by: |
|
Used by: |
|
Table 22-4. Time zone configuration setting
Variable name: |
javax.servlet.jsp.jstl.fmt.timeZone |
Java constant: |
Config.FMT_TIME_ZONE |
Get JavaServer Pages, Second 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.