Sun Java System Web Server 7.0 Update 2 Developer's Guide to Java Web Applications

locale-charset-info Element

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.

Subelements

The following table describes subelements for the locale-charset-info element.

Table A–47 locale-charset-info Subelements

Element  

Required  

Description  

locale-charset-map Element

one or more 

Maps a locale to a character set. 

parameter-encoding Element

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

Attributes

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