aspose file tools*
The moose likes Tomcat and the fly likes Tomcat not showing the deployed version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not showing the deployed version" Watch "Tomcat not showing the deployed version" New topic
Author

Tomcat not showing the deployed version

Anders Boje Larsen
Greenhorn

Joined: Jul 15, 2010
Posts: 16
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 ..
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

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


[Servlet tutorial] [Servlet 3.0 Cook Book]
Anders Boje Larsen
Greenhorn

Joined: Jul 15, 2010
Posts: 16
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.
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3267
    
  52

Moving to Tomcat forum


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anders Boje Larsen
Greenhorn

Joined: Jul 15, 2010
Posts: 16
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not showing the deployed version