Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: O
- Next: pass-by-reference

## parameter-encoding

Specifies the default request character encoding and how the web container decodes parameters from forms according to a hidden field value.

If both the sun-web-app and locale-charset-info elements have `parameter-encoding` subelements, the subelement of `sun-web-app` takes precedence. For encodings, see `http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html`.

### Superelements

locale-charset-info, sun-web-app (`sun-web.xml`)

### Subelements

none

### Attributes

The following table describes attributes for the `parameter-encoding` element.

Table A–75 `parameter-encoding` Attributes

Attribute | Default | Description
--- | --- | ---
`form-hint-field` | none | (optional) The name of the hidden field in the form. This field specifies the character encoding the web container uses for `request.``getParameter` and `request.``getReader` calls when the charset is not set in the request’s `content-type` header.
`default-charset` | `ISO-8859-1` | (optional) The default request character encoding.

- Previous: O
- Next: pass-by-reference

- © 2010, Oracle Corporation and/or its affiliates