Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Tomcat and the fly likes Caching Problem in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Caching Problem in Tomcat" Watch "Caching Problem in Tomcat" New topic

Caching Problem in Tomcat

Parth Mankad

Joined: Jan 27, 2003
Posts: 18
hi all

i am using Tomcat 4.0 and jsp wherein i upload a .dbf file.the file gets uploaded poperly and i am also able to view the contents of the file.i another .dbf file i uploaded then it is always saved with the same name so evertime i upload a dbf file the previous filegets problem i s that the file gets overwrriten properly but tomcat shows me the data of the previous file and not the new file that has been uploaded.i have tried to delete the file and re-create it every time it is uploaded but still i am facing the same problem.i have also put the following in my jsp page

response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "No-cache");

but still the same problem.plz can u tell me the solution for this
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12913
Exactly what on the server side is supposed to be handling this .dbf file?
Parth Mankad

Joined: Jan 27, 2003
Posts: 18
the.dbf file is being quiered through jsp page
Have you tried LearnNowOnline?
subject: Caching Problem in Tomcat