autoRequestEncoding and autoResponseEncoding

Two new WAS extensions are available in Version 5, autoRequestEncoding and autoResponseEncoding.

In WAS v5, the Web container no longer automatically sets request and response encodings, and response content types. Programmers are expected to set these values using available methods in the Servlet 2.3 Specification. If programmers choose not to use the character encoding methods, they can specify the autoRequestEncoding and autoResponseEncoding extensions, which enable the appserver to set the encoding values and content type.

The values of the autoRequestEncoding and autoResponseEncoding extensions are either true or false. The default value for both extensions is false. If the value is false for both autoRequestEncoding and autoResponseEncoding, then the request and response character encoding is set to the Servlet 2.3 Specification default, which is ISO-8859-1. Also, If the value is set to false for a response, the Web container cannot set a response content type.

Use the Assembly Toolkit to change the default values for the autoRequestEncoding and autoResponseEncoding extensions.

Review the autoRequestEncoding and autoResponseEncoding encoding examples for a description of Web container behavior when these values are set to true.

 

See Also

Internationalization
Examples: autoRequestEncoding and autoResponseEncoding encoding examples
Webapplications: Resources for learning