Auto - Netscape ENTREPRISE SERVER 6.0 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Does not send any charset information in the Content-Type header
On the server side, if a servlet tries to access
getParameterValues
which character encoding to use for
You can configure Enterprise Server 6.0 to instruct the servlet container which
character encoding to use for interpreting
specify the character encodingusing the
:
web-apps.xml
<parameter-encoding enc=" value "/>
where value can be one of the following:
(default)

auto

none
any valid encoding
These values are described below.
auto
requires the servlet container to look for some hints regarding the character
auto
encoding to be used. The hint can be provided using:
A request attribute with the name:
com.netscape.server.http.servlet.parameterEncoding
type
. The request attribute must be set before any calls to
String
getParameter()
request.setAttribute("com.netscape.server.http.servlet.
parameterEncoding", "Shift_JIS");
request.getParameter("test");
This option is used if the servlet knows beforehand what the charset of the
posted data is.
A
parameter in the form data. The form that is being submitted
j_encoding
can have a hidden element. Example:
<input type=hidden name="j_encoding" value="Shift_JIS" >
, the servlet container does not have any information about
getParameter
POST
parameter-encoding
or
getParameterValues()
Appendix D
Servlet Internationalization
data using
POST
getParameter
strings.
data strings. To do this, you would
element in
. The value is of
. Example:
Internationalized Enterprise Server
or
411

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 6.0

Table of Contents