As you're using struts you can accomplish this even easier by adding the lines
<init-param> <param-name>nocache</param-name> <param-value>true</param-value> </init-param> to the <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> section of your web.xml. Struts will then automatically put those no-cache headers into all your jsps. Andrew > -----Original Message----- > Subject: RE: [MVC-Programmers] Refreshing pages > > > Alex, > > Put this code at the top of every JSP page that you want to refresh each > time it loads. I don't understand it, but it works! Personally, I put it > at the top of every page just for the hell of it. > > <% // This JSP scriptlet will prevent troublesome page-caching > response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 > response.setHeader("Pragma","no-cache"); //HTTP 1.0 > response.setDateHeader ("Expires", -1); //prevents caching at the proxy > %> > > > Regards. > > Lindsay > -----Original Message----- > Subject: [MVC-Programmers] Refreshing pages > > Hi everyone! > > I'm using Struts 1.0 for an internal Web App in my company. I don't know > how I can always refresh a JSP page. I don't want the users to see cached > pages (when they click the "back" button or when they are working > offline). > Is there any way to do this? Please help me. > > Thank you in advance, > Alex. _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.netbean.net/mailman/listinfo/mvc-programmers