Loads a resource bundle whose settings are combined with existing resource bundle settings.

<dsp:layerBundle basename="bundle-name[var-spec] />

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

var

Names an EL variable. When you use var, you can set its scope attribute to page, request, session, or application. The default scope is page. For more information, see EL Variable Scopes in Chapter 2.

id

Names a scripting variable that scriptlets and expressions can access at runtime.

Usage Notes

dsp:layerBundle loads an i18n localization context and stores it in a scoped variable or scripting variable. Unlike the JSTL tag fmt:setBundle, dsp:layerBundle 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.

 
loading table of contents...