response.sendredirect(*.jsp)是一个重定向方法,执行完后网页转向预设定的网页,而<a href="http://192.168.1.80:8080/*.jsp"> 是需要点击的,当然不能显示正确的结果.

解决方案 »

  1.   

    IE的缓存,取消缓存
    ----------------------
    <%
    //防止IE缓存
    response.setHeader("pragma","no-cache");
    response.setHeader("cache-control","no-cache");
    response.setDateHeader("Expires",0);
    %>
    ----------------------
      

  2.   

    在web.xml里设置nocache=true,然后在每个页面加上:
    response.setHeader("pragma","no-cache");
    response.setHeader("cache-control","no-cache");
    response.setDateHeader("Expires",0);
      

  3.   

    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">
      

  4.   

    把ie设置为每次访问此页时检查新版本,在  工具-->internert选项-->常规-->设置
      

  5.   

    各位大虾,我按你们说的,设置了<META HTTP-EQUIV="Pragma" CONTENT="no-cache">  
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">  
    <META HTTP-EQUIV="Expires" CONTENT="0">网页还是没有更新,点击refresh才刷新啊
      

  6.   

    如果是你们说的问题,为什么IP为localhost显示总是正确的呢?