Jump to Real's How-to Main page

Detect change in JSP and recompile (BEA)

By default, if you deployed an application in exploded mode, BEA WLS doesn't recompile a modified JSP. You change this behaviour by adding this directive in a weblogic.xml configuration file.
<jsp-descriptor>
    <jsp-param>
      <param-name>page-check-seconds</param-name>
      <param-value>60</param-value>
    </jsp-param>
  </jsp-descriptor>
page-check-seconds sets the interval, in seconds, at which WLS checks to see if JSP files have changed and need recompiling. Dependencies are also checked and recursively reloaded if changed.

If set to 0, pages are checked on every request. If set to -1, page checking and recompiling is disabled.


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2007
[ home ]