None; Any Valid Encoding; Posting To Jsps - Netscape ENTREPRISE SERVER 6.0 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Posting to JSPs

This option is typically used if the servlet that is reading the data does not
necessarily know what the charset of the posted data is. The hint parameter
name, which by default is
the

none

Use this option if you wish the platform default encoding to be used for the servlet
parameter data.

any valid encoding

If none of the above options are specified, the servlet container interprets this string
itself as the encoding, so this can be any valid encoding string like
UTF-8
POST
NOTE
For more information on
Programmer's Guide to Servlets.
Posting to JSPs
You can configure
posting to a JSP instead of a servlet. The following example demonstrates a JSP
configuration of '
encoding:
<%@ page contentType="text/html;charset=Shift_JIS" %>
<html>
<head>
<title>JSP Test Case</title>
</head>
<body>
<%
request.setAttribute("com.netscape.server.http.servlet.parameterEnc
oding", "Shift_JIS");
412
Netscape Enterprise Server Administrator's Guide • November 2001
parameter-encoding
. For example, you would specify this as
data is always in
UTF-8
The server will always try to resolve the charset from the
Content-Type header of the request first.
parameter-encoding
parameter-encoding
' to read parameters which are in Japanese
auto
can be changed using
j_encoding
element in
web-apps.xml
UTF-8
.
, see the Netscape Enterprise Server
to work the same way when you are
.
Shift_JIS
if you know that the form
Shift_JI
, or
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 6.0

Table of Contents