Specifies the mapping between the locale and the character encoding that should be set in the Content-type header of the response if a servlet or JSP sets the response locale using the ServletResponse.setLocale method. This overrides the web container's default locale-to-charset mapping.
The following table describes subelements for the locale-charset-info element. The left column lists the subelement name, the middle column indicates the requirement rule, and the right column describes what the element does.
Table 6–44 locale-charset-info Subelements
Element |
Required |
Description |
---|---|---|
one or more |
Maps a locale to a character set. |
|
zero or one |
Deprecated. Use the parameter-encoding element under sun-web-app instead. This is supported only for backward compatibility with applications developed under Sun Java System Application Server 7. |
The following table describes attributes for the locale-charset-info element. The left column lists the attribute name, the middle column indicates the default value, and the right column describes what the attribute does.
Table 6–45 locale-charset-info Attributes
Attribute |
Default Value |
Description |
---|---|---|
default-locale |
none |
Ignored in Sun Java System Web Server 6.1. |