• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refresh a JSP page

 
deepesh shah
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am facing a typical problem, see it is something like when i request a page when the page load somtimes i found repeatation of form componenets like more than one combo or table inspite of proper code because of multiple processing of the request and it turns out horrible all the images and other component shatters around the page, so can anyone help me out stopping this to happen. well if there is any code in JSP or javascript that can help out to load a refresh page, pls send me. i think it has something to do with flushing the out.print pls help me out.
thanx in adv..
regards.
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepesh,
May be you have something cache problem. Try foll. snippet.
<%response.setIntHeader("max-age", 0); //IE only;
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.addHeader("Cache-Control","no-store");
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setIntHeader ("Expires", -1); //prevents caching at the proxy server
response.addHeader("cache-Control", "private"); //IE5.x only;
%>
S.Oza
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic