两种方法,一关闭cache,而设定自动刷新

解决方案 »

  1.   

    这是由于ie缓存的缘故,你可以在jsp页面添加随机数字!
    比如在你的jsp页面上加上:
    <input type=hidden name=random value=<%=Math.random()%>>
      

  2.   

    同意楼上的,ie缓存的缘故
     response.setHeader("Cache-Control", "no-store"); //HTTP 1.1
     response.setHeader("Pragma", "no-cache"); //HTTP 1.0
     response.setDateHeader("Expires", 0); //
    或直接用网页设置header中的变量
      

  3.   

    解决了 struts-config.xml漏了配置
    <controller  nocache="true" />缺省是false的