不要缓存jsp页面
1, 使用java提供的方法,在jsp或者servlet中都可以 
<% 
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
%> 
2, 使用HTML标记,如下面: 
<HEAD> 
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="0"> 
</HEAD>
 

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/2123/2123427.xml?temp=.9556391
      

  2.   

    teafang,我用了你说的办法,没有效果呀。两种写法我都用了。
    我的页面是index.jsp
      

  3.   

    我是做在javabean里的 每次进页面随即数都不一样
      

  4.   

    做在Bean里应该没区别。。你点击浏览器上后退按钮进页面也会不一样吗?
      

  5.   

    是呀 我在页面开头加上
    <% 
    response.setHeader("Pragma","No-cache"); 
    response.setHeader("Cache-Control","no-cache"); 
    response.setDateHeader("Expires", 0); 
    %> 
    每次都是不同的数
      

  6.   

    http://www-900.ibm.com/developerWorks/cn/java/l-imgtxt/index.shtml
    上面写的比较详细应该对你有用