Loads a resource bundle whose settings are combined with existing resource bundle settings.
<dsp:setLayeredBundle basename="bundle-name
"[scope]
[var-spec]
[locale]
/>
Attributes
basename
Specifies the base name of the resource bundle bundle-name
, where bundle-name
excludes localization suffixes and filename extensions.
var-spec
An EL variable or scripting variable that is defined with one of these attributes:
Attribute | Description |
---|---|
| Names an EL variable. When you use |
| Names a scripting variable that scriptlets and expressions can access at runtime. |
locale
The locale that will be used. For example, en_US
, fr
, fr_CA
, or es
. By default this tag uses the locale indicated in the HTTP request.
Usage Notes
The dsp:setLayerBundle
tag loads an internationalization localization context and stores it in a scoped variable or scripting variable. Unlike the JSTL tag fmt:setBundle
, dsp:setLayerBundle
combines the settings of the specified resource bundle with existing resource bundle settings. These settings remain in effect only for the duration of the specified scope.