uCosminexus Application Server, Web Container Functionality Guide
JSP is compiled in a Web container, and the Java source files and class files are generated. With a Web container, you can specify whether to maintain the Java source files and class files that serve as JSP compilation results, when a J2EE server is restarted. This subsection describes the settings for maintaining the compilation results of the JSP file.
This subsection explains the lifecycle and the output destination of the JSP compilation results when you use the JSP pre-compilation functionality.
The lifecycle of the JSP compilation results when you use the JSP pre-compilation functionality is explained below:
When you implement the JSP pre-compilation functionality, the JSP working directory is created, and the JSP compilation results are output to the JSP working directory. If, however, the JSP files to be compiled do not exist, the JSP working directory is not created. The following files are output:
The default output destination and the configuration of the output destination directory are explained below: For details on the names of the output classes, see 2.5.7 Class names in JSP compilation results.
When you execute the JSP pre-compilation functionality, the compilation results are output to the JSP working directory. The default JSP working directory is at the following location:
If the WEB-INF directory does not exist, the WEB-INF directory and JSP work directory are automatically created when the JSP work directory is created.
Note that the default value is set for the name of the JSP working directory. However, if necessary, you can change the name. For details on changing the name of the JSP work directory during the JSP pre-compilation by the cjjspc command, see cjjspc (JSP pre-compilation) in the uCosminexus Application Server Command Reference Guide. For details on changing the name of the JSP work directory during the JSP pre-compilation when the J2EE application is started by the cjstartapp command, see 2.5.8 Execution environment settings (J2EE server settings).
Also, when you change the name of the JSP work directory, you must specify the name of the changed JSP work directory in the parameter webserver.jsp.precompile.jsp_work_dir within the <configuration> tag of the logical J2EE server (j2ee-server) of the Easy Setup definition file. 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.
The JSP compilation results are output to the JSP working directory. The following figure shows the configuration of the output destination directory for JSP compilation results. Note that in the following figure, default directory name is used for the JSP working directory.
Figure 2-7 Configuration of output destination directory for JSP compilation results (When JSP pre-compilation is executed)
The directory configuration is explained below:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.