tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Nicholson" <...@email.unc.edu>
Subject Re: JSP not using latest version of included file
Date Fri, 20 Dec 2002 18:10:51 GMT
Is this behavior all from one browser, or from multiple browsers?  I had a
similar problem, but by telling my browser to stop caching, it went away, so
my thought was that for whatever reason it was cached on the browser.
Which, as I'm typing this, seems like it might be fixed by the other
solution (a dynamic jsp:include), because if the browser isn't loading it
from somewhere else, it must not be getting a header that leads to
reloading...  you could also maybe try using some of the <META> tags to
force non-caching behavior of the included page...


----- Original Message -----
From: "Mark" <markd@bellsouth.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, December 20, 2002 12:50 PM
Subject: JSP not using latest version of included file


> My app has several JSPs that include an html file (ie. <%@ include
> file="banner.html" %>) that displays the app's version number.
banner.html
> gets updated every now and then with a new version number via Ant and
> pushed to the Tomcat webapps/myapp directory along with the JSPs (forced
> overwrite using Ant copy task).  The app is then reloaded w/i Ant via the
> Catalina reload task.
>
> Everything works except the newly compiled JSP isn't including the new
html
> file.  It's somehow picking up the prior version.  Given a JSP
'login.jsp',
> the login_jsp.java and login_jsp.class (in the TC
> ../work/standalone/localhost/myapp directory) both have new timestamps
> which indicates they were regenerated after the JSPs and html were pushed
> into place.   If I manually delete those generated files forcing another
> JSP recompile, it *still* won't pick up the new html. If I delete the
files
> (again), stop/start the application in the TC manager, then the newly
> generated login_jsp.java suddenly includes the new version of the html.
>
> It's as if the JSP compiler is using a cached version of the old .html
file
> until I stop the application.
>
> I want to display the new included html w/o having to start/stop the app o
r
> Tomcat. Can someone explain what's  going on?
>
> Thanks
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message