By default, the JavaServer Pages (JSP) engine translates a requested JSP file, compiles the .java file, and loads the compiled servlet into the run-time environment. You can change the JSP engine default behaviour by indicating a JSP file should never be translated or compiled at run-time, even when a .class file does not exist.
If run-time compilation is disabled, precompile the JSP files, which provides the following advantages:
You can disable run-time JSP file compilation on a global or an individual Web application basis:
Set this property through the Web container Custom properties panel in the administrative console. To view this administrative console page, click:
Servers > Application servers > server_name > Web container settings > Web container > Custom properties > property_name
Valid values for this setting are true or false . If this property is set to true, then translation and compilation of the JSP files is disabled at run time for all Web applications.
Set this parameter through the JavaServer Pages attribute assembly settings panel in the Assembling applications.
Valid values for this setting are true or false. If this parameter is set to true, then, for that specific Web application, translation and compilation of the JSP files is disabled at run time, and the JSP engine only loads precompiled files.
If you disable run-time compilation and a request arrives for a JSP file that does not have a matching .class file, the JSP engine returns HTTP error 500 (Internal server error) to the browser. In this case, an exception is written to the System Out (SYSOUT) and First Failure Data Capture (FFDC) logs.
If a JSP file has a matching
.class file but that file is out of date, the JSP engine still loads the .class file into memory.
Related concepts
JavaServer Pages
Related tasks
Developing Web applications
Related reference
Custom property settings
Web container