You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/21 16:59:36 UTC

DO NOT REPLY [Bug 6007] - JSP-servlet cache is not deleted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6007>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6007

JSP-servlet cache is not deleted





------- Additional Comments From gus.heck@olin.edu  2003-01-21 15:59 -------
I just read this bug, and it seems that there is a simple solution. The notion
of doing checksums is calculationally intensive, and therefore unacceptable, but
you don't need a check sum. All you need is the date on the JSP file. Store it
in a file called foo.class.jspdate and compare that date to the one on the JSP..
if it differs + or - recompile. One might even be able to add this information
directly into the generated .java (and thus .class) file as a constant int where
it can be checked without another file access.

If the extra file access solution needs to be turned off for production make
this check only happen if tomcat is started with soemthing like a -devel flag or
somesuch.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>