Oracle JavaServer Pages Developer's Guide and Reference Release 8.1.7 Part Number A83726-01 |
|
This section describes conditions under which OracleJSP retranslates pages, reloads pages, and reloads classes during runtime. This discussion does not apply to JSP pages running in the Oracle Servlet Engine.
As a Web application is running, the OracleJSP container by default will automatically retranslate and reload a JSP page whenever the page source is modified.
OracleJSP checks whether the last-modified time of the page implementation class file, as indicated in the OracleJSP in-memory cache, is older than the last-modified time of the JSP page source file.
You can avoid the overhead of OracleJSP checking timestamps for retranslation by setting the OracleJSP developer_mode
flag to false
. This is advantageous in a deployment environment, where source and class files will typically not change. For more information about this flag, see "OracleJSP Configuration Parameters (Non-OSE)". For how to set it, see "OracleJSP Configuration Parameter Settings".
The OracleJSP container will automatically reload a JSP page (in other words, reload the generated page implementation class) under the following circumstances.
(See the previous section, "Dynamic Page Retranslation".)
(See the following section, "Dynamic Class Reloading".)
A JSP pages is associated with the overall Web application within which it runs (even JSP pages not associated with a particular application are considered to be part of a "default application").
Whenever a JSP page is reloaded, all JSP pages in the application are reloaded.
By default, before OracleJSP dispatches a request that will execute a Java class that was loaded by the OracleJSP class loader, it checks to see if the class file has been modified since it was first loaded. If the class has been modified, then the OracleJSP class loader reloads it.
This applies only to classes in the OracleJSP classpath, which includes the following:
WEB-INF/lib
directory
.class
files in the WEB-INF/classes
directory
classpath
configuration parameter
.class
files in the _pages
output directory
As mentioned in the preceding section, "Dynamic Page Reloading", reloading a class results in the dynamic reloading of JSP pages that reference that class.
For information about the classpath
and developer_mode
configuration parameters and how to set them, see "OracleJSP Configuration Parameters (Non-OSE)" and "OracleJSP Configuration Parameter Settings".
|
Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|