uCosminexus Application Server, Web Container Functionality Guide

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

2.6.3 Application of character encoding during JSP pre-compilation

You can apply the default character encoding of the JSP file during the execution of the JSP pre-compilation functionality. If the default character encoding is applied during the execution of the JSP pre-compilation functionality, the default character encoding settings depend on the JSP pre-compilation method. The JSP pre-compilation methods have the following two types:

The default character encoding settings is described for each JSP pre-compilation type. For details on the JSP pre-compilation functionality, see 2.5 JSP pre-compilation functionality and maintaining compilation results.

For details on the specifiable character encoding, see 2.6.4 Specifiable character encoding and for the applicable points and conditions of the specified default character encoding, see 2.6.2 Applicable locations and conditions for default character encoding.

Organization of this subsection
(1) JSP pre-compilation functionality executed during the application development (cjjspc command)
(2) JSP pre-compilation functionality executed during the startup of the J2EE application (cjstartapp command)

(1) JSP pre-compilation functionality executed during the application development (cjjspc command)

When JSP pre-compilation is executed using the cjjspc command, the default character encoding can be applied to JSP files or tag files. In the cjjspc command, you specify the default character encoding in the argument of the cjjspc command. As a result, the default character encoding specified in the command is applied to the JSP file that is executed when the cjjspc command is running. However, if the JSP file and tag file contain the character encoding defined in the Servlet specifications, the default character encoding settings will not be applied.

For details on settings, see cjjspc (JSP pre-compilation) in the uCosminexus Application Server Command Reference Guide.

Note
The default character encoding used for request decoding and response encoding is not applied during the compilation of JSP files, and therefore, you cannot specify the settings in the cjjspc command.

(2) JSP pre-compilation functionality executed during the startup of the J2EE application (cjstartapp command)

When JSP pre-compilation is executed with the startup of the J2EE applications using the cjstartapp command, you can apply the default character encoding to JSP files or tag files. The method of setting up the default character encoding is same for J2EE servers and Web applications. For J2EE servers, the default character encoding is set up for each J2EE server during the J2EE server operation settings. For Web applications, the default character encoding is set up in each WAR file during the Web application development. Execute the cjstartapp command to apply the specified default character encoding.

For details on the settings for each J2EE server and Web application, see 2.6.1 Units for setting the default character encoding. Also, for details on settings, see 2.6.7 Execution environment settings.