The internationalization elements are as follows:
This element specifies a hidden field or default character set that determines the character encoding the web container uses to decode parameters for request.getParameter calls when the character set is not set in the request's Content-Type.
For encodings you can use, see
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html.
The following table describes attributes for the parameter-encoding element.
Table A–46 parameter-encoding Attributes
Attribute |
Default Value |
Description |
---|---|---|
form-hint-field |
none |
The value of the hidden field in the form that specifies the parameter encoding. |
default-charset |
none |
This value is used for parameter encoding if neither request.setCharacterEncoding() is called nor form-hint-field is found in the request. |
none
none
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. Used only for request processing, and only if no parameter-encoding is defined. |
|
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 attribute for the locale-charset-info element.
Table A–48 locale-charset-info Attributes
Attribute Value |
Default Value |
Description |
default-locale |
none |
Although a value is required, the value is ignored. Use the default-charset attribute of the parameter-encoding Element. |
This element maps a locale to a specific character encoding.
For encodings you can use, see:
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
The following table describes attributes for the locale-charset-map element.
Table A–49 locale-charset-map Attributes
Attribute |
Default Value |
Description |
---|---|---|
locale |
none |
Specifies the locale name. |
agent |
none |
Ignored in Web Server |
charset |
none |
Specifies the character set for that locale. |
The following table provides a locale-charset-map example, listing the locale and the corresponding charset:
Table A–50 locale-charset-map Example
Locale |
Charset |
---|---|
ja |
EUC-JP |
zh |
UTF-8 |
This element specifies the name of a logical message-destination defined within an application. The message-destination-name matches the corresponding message-destination-name in the corresponding Java EE deployment descriptor file.
The following table describes subelements for the message-destination element.
Table A–51 message-destination Subelements
Elements |
Required |
Description |
only one |
Specifies the name of a logical message destination defined within the corresponding Java EE deployment descriptor file |
|
only one |
Specifies the jndi-name of the associated entity |
This element specifies the name of a logical message destination defined within the corresponding Java EE deployment descriptor file.
none
This element specifies a name and optional publish location for a web service.
The following table describes subelements for the webservice-description element
Table A–52 webservice-description Subelements
Element |
Required |
Description |
only one |
Specifies a unique name for the web service within a web |
|
zero or one |
Specifies the URL of a directory to which the web services WSDL is published during deployment |
none
This element specifies a unique name for the web service within a web.
none
none
This element specifies the URL of a directory to which a web service's WSDL is published during deployment. Any required files are published to this directory, preserving their location relative to the module-specific WSDL directory (META-INF/wsdl or WEB-INF/wsdl).
none
none