Manually refreshing page in servlet
1 posts in topic
Flat View  Flat View

Posted By:   Mike_Lam
Posted On:   Wednesday, May 15, 2002 10:04 PM


I have this servlet that when processed automatically opens a window that display the results, however, because of IE's caching, when I reprocess the page the window still displays the old data. I can simply set the caching settings but I was wondering if there is a programmatical way of doing it. I try to do it on the client side using or or or but nothing seemed to work. Can someone give me some hints?

Mike Lam

Re: Manually refreshing page in servlet

Posted By:   gayathri_meenakshi  
Posted On:   Thursday, May 16, 2002 03:49 AM

Hi Mike,

Include the code given below in your servlet
and let me know the results...

response.setHeader("pragma", "no-cache");

where response is the HttpServletResponse object.

Make sure to paste this line prior to writing the output.

Hope this helps,

About | Sitemap | Contact