Legacy Configuration Files
92 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
# context.global.parameterEncoding=utf8
# context.global.isModifiedCheckAggressive=false
#
################################# Contexts #############################
context.global.initArgs=docRoot=C:/iPlanet/Servers
context.context1.name=context1
The following sections explain a few of the context properties in more detail.
isModifiedCheckAggressive
When you modify a packaged servlet, the new version is not reloaded
automatically unless you have done one of the following:
• Set the
isModifiedCheckAggressive property to true, for example:
context.global.isModifiedCheckAggressive=true
• Used the .class extension when invoking the servlet, for example:
http://your_server/servlet/HelloWorld.HelloWorldServlet.class
parameterEncoding
The context.global.parameterEncoding property allows you determine the
character encoding of servlet parameters. It has the following options:
none Uses the system default encoding. Set this option if the encoding of the
servlet parameter data is the same as the system default encoding.
auto (Default) Tries to figure out the proper encoding from, in order, 1) the
charset if it is set in the Content-Type header, 2) the
parameterEncoding attribute
(see “ServletRequest.setAttribute,”
on page 73)
, then 3) a hidden form field, such as j_encoding.
Otherwise, the system default encoding is used. Set this option to
prevent misinterpretation of non-ASCII characters in servlet
parameters.
When this property is set to auto, the server has to convert native
characters into a java byte array before transforming them into the
requested encoding. Therefore, performance is slightly better for none
or a specific encoding.
any supported
java character
encoding
A specific encoding, such as utf8 or Shift_JIS. Set this option if you
know the encoding that servlet parameters use. A complete list is
available here:
http://java.sun.com/j2se/1.3/docs/guide/intl/encodin
g.doc.html
Kommentare zu diesen Handbüchern