1.用window.redirect
2.在JS中用window.settimeout方法。

解决方案 »

  1.   

    1.为什么用main.jsp判断?用框架页判断呀
    2.只能记录url
      

  2.   

    回楼上:
    1.整个框架只有mianFrame那部分是动态的,我就是进入不同的页面的时候检查session是否过期,好像跟框架页没关系?
    2.好像俺已经搞定了,用out.println("<script>window.setTimeout('history.back()',2000)</script>");
      

  3.   

    1.frame.jsp
    <%
    //在这儿判断
    %>
    <html>
    <head>
    <title> New Document </title>
    </head><frameset rows="120,*">
    <frame src="top.jsp" name="logoFrame">
    <frameset cols="200,*">
    <frame src="tree.jsp" name="menuFrame">
    <frame src="main.jsp" name="mainFrame">
    </frameset>
    </frameset></html>
    2.
    你的代码可以过两秒钟后返回上一页,不过页面不会刷新
      

  4.   

    response.setHeader("Refresh","5;URL=(你要跳转的叶面)");
    5就是延迟的时间数 5秒
      

  5.   

    to:dreamover(梦醒了),我还是不明白,在框架页判断有什么用,除非我刷新整个框架,否则怎么会触发它?另外,这样的话框架页就必须是jsp了,这样刷新的时候会返回最初的页面,就像CSDN那样,我希望它刷新的时候保持现有页面。我用JS实现了:
    <script>window.setTimeout("top.location='../index.html'",2000)</script>WHW1984(任逍遥),你那个无法脱离原框架的。
      

  6.   

    to cyy217b() 你的方法可以,总之用哪个框架(frame)显示是在客户端决定的