Click to See Complete Forum and Search --> : Browser Problem:Picking old Files


kuldeept
June 6th, 2005, 12:23 AM
Hi All,
I am working in jsp,and there is an image on my webpage.The image is created dynamically based on the data on the webpage.The scenario is like this.

1.I make some changes in my web page data and press recalculate buuton on the page.
2.this resubmits the page and my java code deletes the old image, creates a new image(with same name as the old one) based on changed data.and this new image is included on the page.

I'm still getting the old image,whereas it has been deleted from the disk.
To get the new(correct) image I'v to either
1) press the refresh button on the browser. or
2) delete all offline files before pressing recalculate button on the page.

Please help me solve this.

Thanks.
Kuldeep.

Dr. Script
June 6th, 2005, 06:47 AM
Sounds a lot like its being cached. If you are using Internet Explorer, a possible [not definite] solution is to go into the Internet Options -> General Tab -> Temporary Internet Files [Middle] -> Settings [button -> Every Visit to the page [1st option button].

Also, in that window, you can reduce the size of your temporary internet files, to better the chance that the browser looks for the new image. Either way, this seems to be a browser, not a code, error.