wood burning stoves 2.0
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 Java Interview Guide this week in the Jobs Discussion 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 overwritten.my 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: 13037
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
I agree. Here's the link: http://aspose.com/file-tools
subject: Caching Problem in Tomcat
It's not a secret anymore!