uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.6.7 Execution environment settings

To specify settings for the default character encoding, you must set up the J2EE server and Web applications.

Reference the Web application settings only when you want to set up or change the properties of Web applications that do not contain cosminexus.xml.

Organization of this subsection
(1) Setting up the J2EE server
(2) Web application setup

(1) Setting up the J2EE server

Implement the J2EE server settings in the Easy Setup definition file. Specify the definition for the default character encoding within the <configuration> tag of the logical J2EE server (j2ee-server), in the Easy Setup definition file.

The following table lists the definitions for the default character encoding in the Easy Setup definition file:

Table 2-26 Definitions of default character encoding in the Easy Setup definition file

Parameter to be specified Setting contents
webserver.http.request.encoding Specify the character encoding to be used for request body and query decoding.
webserver.http.response.encoding Specify the character encoding to be used for the response body encoding.
webserver.jsp.pageEncoding Specify the encoding for the JSP file.
webserver.static_content.encoding.extension Specify the static contents extension for applying the default response character encoding.

Note:
If the settings for each J2EE server are specified with the character encoding settings for each Web application, the settings for each Web application are enabled. For details on the priority level of the settings, see 2.6.1(3) Operations when character encoding is specified with multiple ranges.

For details on the Easy Setup definition file and the parameters to be specified, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.

(2) Web application setup

Implement the settings for the Web applications in the execution environment using the server management commands and property files. Use the WAR property file for defining the default character encoding.

The tags specified in the WAR property file correspond to the DD. For details on the definition in the DD (web.xml), see 2.6.6 Definition in the DD.