Share this page 

Detect change in JSP and recompile (BEA)Tag(s): Servlet/JSP


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.