13.8.9 Reloading the JSPs

If a JSP is updated, the update is detected when JSP is recompiled or through the monitoring of the class files and the JSP is reloaded. The JSP reloading methods are as follows:

The following table describes the differences between the JSP reloading methods.

Table 13-16 Differences between the JSP reloading methods

ItemsFor reloading by re-compiling JSPsFor reloading by monitoring the class files
Usage of the JSP pre-compile functionalityThe JSP pre-compile functionality is disabled.The JSP pre-compile functionality is enabled.
Target files for update detection#
  • JSP files
  • Tag files
  • Files on which the JSP files or tag files depend
  • Class files generated by the JSP pre-compile functionality
Processing after the update detectionThe files are compiled and reloaded.The class files are reloaded.

#: The updates are not detected even if you update the files that are not loaded into the Web container or the files for which updates are not to be detected.


In both the reloading methods, you can specify the update detection interval for JSPs and the interval for updating the JSP configuration file to detect the file updates. For details on the update detection interval, see 13.8.6 Update detection interval for J2EE applications. For details on the interval for configuration file update, see 13.8.7 Interval for updating the J2EE application configuration file.

Note
Time at which the loaded JSPs are destroyed and the monitoring targets of the JSP reloading functionality
If you execute the Web application reloading functionality when the Web application reloading functionality is used together with the JSP reloading functionality, the loaded JSPs are destroyed. Only the JSP files, loaded when the Web application reloading functionality is executed, are monitored for the JSP reloading functionality.
When you restart the Web container and Web applications, the loaded JSPs are destroyed. Also, only the JSP files loaded after the Web application starts are monitored for the JSP reloading functionality.