I am referring to the following parameter of Tomcat's web.xml
file:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
. . .
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
. . .
</servlet>
Is there any way for a web application to programmatically toggle this value -- at least for itself if not for all web applications -- so this can be temporarily changed on a running web server without having to stop and restart Tomcat?
Failing this, is there a way to force a single JSP to recompile without having to wait the few non-deterministic minutes it may take otherwise? I know that if you change a JSP, it will eventually (within a few minutes) be compiled, but I'm looking for a way to say, "On the next access, recompile it."
NOTE: Solutions which require restarting the web application or which will result in a web app restart or a container restart won't help me. I already know how to do this (by hand) for times when I can restart Tomcat. What I am trying to do is to temporarily switch the "development" value from false to true on a Tomcat instance in production, where I cannot interrupt current sessions.