9.12.1 Setting method
You set the default character encoding for each Web application.
You can set the default encoding for the following character encoding:
-
Character encoding of the request body and query
-
Character encoding of the response body
-
Character encoding of JSP files
- Organization of this subsection
(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> |
For details on the property settings, see 3.7.1 Specifications of the HITACHI WAR Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.