Use this page to specify which internationalization context the Web container will scope to servlet service method invocations.
By default, a Web container scopes the caller's internationalization context to service method invocations of servlets and Java Server Pages components (JSPs) configured to the Container internationalization type. To override this default scoping behavior, create and configure at least one Container Internationalization attribute.
A Container Internationalization attribute associates those servlets (JSPs) that employ container-managed internationalization to one of three internationalization contexts: the Caller context, the Server context, or the context specified in the attribute. For each servlet listed in the attribute, the container scopes the internationalization context that is specified in the attribute's Run as field.
Use the following information to configure new and existing Container Internationalization attributes.
Click the Add button to select the servlets specified by this attribute.
Default | Caller |
Range | Valid values are Caller, Server, and Specified |
More information about valid values follows:
The container invokes the attribute's servlet with the locales (the accept-languages) of the incoming HTTP request. The container supplies GMT+00:00 for time zone. Select Caller when you want servlets to execute under the invocation context of the client request.
The container invokes the servlet with the default context elements of the server Java Virtual Machine (JVM). Select Server when you want servlets to execute under the invocation context of the server JVM.
The container invokes the attribute's servlet with the context elements specified in the attribute's Locales and Time zone ID fields. Select Specified when you want servlets to execute under the invocation context elements specified in the attribute. Be sure to complete the Locales and Time zone ID fields. You can add information about the group of specified context elements in the Description field.
Specify the time zone fields within the Time Zone panel according to the following instructions:
Enter a valid time zone ID. A valid ID represents any time zone supported by java.util.TimeZone. Specifically, an ID may be any of the IDs that appear in the list of time zone IDs returned by method java.util.TimeZone.getAvailableIds(), or a custom ID having the form GMT[+|-]hh[[:]mm]; for example, America/Los_Angeles and GMT-08:00 are valid time zone IDs.
Enter the language code of the new locale. Ideally, language code is one of the lower-case, two-character codes defined by ISO-639. Language code is not restricted to ISO codes and is not a required field; however, a valid locale must contain either a language code or a country code.
Enter the country code of the new locale. Ideally, country code is one of the upper-case, two-character codes defined by ISO-3166. Country code is not restricted to ISO codes and is not a required field; however, a valid locale must specify either a language code or a country code.
Enter the variant of the new locale. Variant is not a required field and serves only to supplement the Language code and Country code fields according to application- or platform-specific requirements.