wood burning stoves 2.0*
The moose likes JSP and the fly likes How to refresh a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to refresh a JSP page" Watch "How to refresh a JSP page" New topic
Author

How to refresh a JSP page

deepesh shah
Greenhorn

Joined: Feb 04, 2002
Posts: 15
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.


deep
Sandeep. Oza
Ranch Hand

Joined: Feb 04, 2002
Posts: 66
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


Yes, Everything Is Possible
 
jQuery in Action, 2nd edition
 
subject: How to refresh a JSP page
 
Similar Threads
How to read JavaScript function from a Jsp
show and insert data from list depending on choice of radio button
MDBs...help..urgent?
Workaround for browser refresh/back button clicks?
MDBs...help..urgent?