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 setting overrides the web container's default locale-to-charset mapping.
The following table describes subelements for the locale-charset-info element.
Table A–47 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 setting is supported only for backward compatibility with applications developed under Web Server |
The following table describes the default-locale attributes for the locale-charset-info.
Table A–48 locale-charset-info Attributes
Attribute Value |
Default Value |
default-locale |
none |