O Tomcat 8 e 7 usa o mecanismo Jasper 2 JSP. Uma das alterações feitas nesta versão é:
Background JSP compilation
If you make a change to a JSP page which had already been compiled Jasper 2 can recompile that page in the background. The previously compiled JSP page will still be available to serve requests. Once the new page has been compiled successfully it will replace the old page. This helps improve availability of your JSP pages on a production server.
Para controlar esse comportamento, você pode usar os seguintes parâmetros (em $CATALINA_BASE/conf/web.xml
):
checkInterval - If development is false and checkInterval is greater than zero, background compiles are enabled. checkInterval is the time in seconds between checks to see if a JSP page (and its dependent files) needs to be recompiled. Default 0 seconds.
development - Is Jasper used in development mode? If true, the frequency at which JSPs are checked for modification may be specified via the modificationTestInterval parameter.true or
false
, defaulttrue
.
Veja mais: Como fazer