Sometimes there is a customer requirement to immediately change some information in a grails gsp file.
In war deployed mode, there should be a possibility to update gsps easily while running in production (without full reloading enabled).
Precompiled gsps classes contain the timestamp of the original gsp file in a static field called LAST_MODIFIED. If the override directory is specified it should be checked for an updated version of the gsp file. If the gsp file is newer, it should be used and compiled on the fly. There should be a parameter which defines the interval between checking for new versions of a gsp file (5000ms default).
If the war is deployed in "exploded mode", the default directory for overriding gsps is servletContext.getRealPath("/WEB-INF").
The gsps are in WEB-INF/grails-app/views and WEB-INF/plugins/*/grails-app/views directories by default in war deployed mode.