uCosminexus Application Server, Application Setup Guide

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

9.12 Setting the default character encoding

You set the default character encoding for each Web application.

You can set the default encoding for the following character encoding:

Organization of this section
(1) Property files to be edited
(2) Acquiring the property files to be edited and setting the properties
(3) Settings of the property to be edited

(1) Property files to be edited

WAR property files

(2) Acquiring the property files to be edited and setting the properties

Acquiring the property files

Execute the following command to acquire WAR property files:

Execution format
 
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
 

Example of execution
cjgetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
 
Setting the property files

Execute the following command to apply the values of WAR property files:

Execution format
 
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
 

Example of execution
cjsetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
 

(3) Settings of the property to be edited

The following table describes the property settings of the default character encoding:

Item Mandatory Corresponding tag name
Character encoding of the request body and query O <http-request> - <encoding>
Character encoding of the response body O <http-response> - <encoding>
Character encoding of JSP files O <jsp> - <page-encoding>

Legend:
O: Optional

For details on the property settings, see 3.7.1 Contents of the WAR property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.