Maps locales and agents to character encodings. Provided for backward compatibility. Used only for request processing. Used only if the character encoding is not specified in the request and cannot be derived from the optional parameter-encoding element. For encodings, see http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html.
locale-charset-info (sun-web.xml)
The following table describes subelements for the locale-charset-map element.
Table A–58 locale-charset-map Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Specifies an optional text description of a mapping. |
The following table describes attributes for the locale-charset-map element.
Table A–59 locale-charset-map Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the locale name. |
|
none |
(optional) Specifies the type of client that interacts with the application server. For a given locale, different agents can have different preferred character encodings. The value of this attribute must exactly match the value of the user-agent HTTP request header sent by the client. See Table A–60 for more information. |
|
none |
Specifies the character encoding to which the locale maps. |
The following table specifies example agent attribute values.
Table A–60 Example agent Attribute Values