Name
<fmt:setLocale>
Synopsis
The <fmt:setLocale>
action sets the locale configuration variable, establishing the
locale for all other JSTL actions that rely on a locale, disabling
the locale lookup based on user preferences.
Syntax
<fmt:setLocale value="locale" [variant="variant"] [scope="page|request|session|application"] />
Attributes
|
Attributename |
Java type |
Dynamic value accepted |
Description |
|---|---|---|---|
value |
|
Yes |
The locale. If set as a |
variant |
|
Yes |
A locale variant, see |
scope |
|
No |
The configuration variable scope. |
Example
<fmt:setLocale value="en-US" />
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access