• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat not showing the deployed version

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts
I have an apache-tomcat-6.0.32 running. My problem is that when I update the JSP files or HTML files it requires quite often pushing refesh (F5) before the change can be seen.

It was not a problem for me as we where running on Tomcat 5, so assume it is an option in the new Tomcat which is causing the problem.

Thanks for all help ..
 
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean F5 refresh in browser? It's mostly your browser not the tomcat which isn't showing latest version. it looks like browser is displaying the cached version of the page
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes F5 in browser. It read that Tomcat look at the page and see when are show cached-file-date<file-date. If the file date i newer then it should be the new cached-file. But this i not the the situation all the time but some times.

Was wondring if there was a way to always use the file and not the cached-file in tomcat.
 
Sheriff
Posts: 7136
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Tomcat forum
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anders Boje Larsen wrote:My problem is that when I update the JSP files or HTML files it requires quite often pushing refesh (F5) before the change can be seen.


Yes, that's correct. If you don't refresh the page, how is the browser supposed to know anything has changed? Just because you made a change on the server, nothing will change in the browser automatically.
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lets say I have a JSP page, that show data from a database. Then i change the data and if I refresh the site or F5 the change of data will now be showed. First if i press F5 ex. 4 times. Some time the old page show up again.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic