解决方案 »

  1.   

    document.getElementById("ifmid").contentWindow.location.reload();//刷新,session自己判断吧
      

  2.   

    我的是登录进来后进入frame.jsp页面,frame.jsp加载a.jsp和b.jsp,a.jsp是菜单页,b.jsp是显示数据的,我现在过一段时间没操作,session中的user失效了,但我是不知道的,我直接单击a.jsp的一个菜单项传值给b.jsp,b.jsp中写了这个:
    <% if (session.getAttribute("user") == null) {%>
         <% response.sendRedirect("frame.jsp"); %>
    <% } else {
    vo = (UserVO) session.getAttribute("user");
    }
    %>
    但是结果却只有b.jsp刷新到了login.jsp,a.jsp没变,然后我在b.jsp这边的刷新后的登录页登录,b.jsp加载了frame.jsp,整个浏览器页面变成了三个部分,怎么弄?
      

  3.   

    看你代码像是b.jsp把frame.jsp加载进来了?  你在iframe页面发送重定向请求,但是response.sendRedirect是没有target属性的,如果想从跳出到frame.jsp,要加上html属性。 例如 response.getWriter().write( "<html><script>window.open(xx.jsp)</script></html>")