a.jsp里iframe一个b.jsp,在b.jsp里一个操作到servlet后,在servlet里response.sendRedirect("c.jsp");
希望跳到c.jsp时是整个页面,而不是a.jsp里的iframe的b.jsp变成c.jsp,该如何弄,谢谢大家。。

解决方案 »

  1.   

    c.jsp head 加: <SCRIPT language="JavaScript"> 
    <!-- 
      if (window.self != window.top) { 
        window.top.location.href = "c.jsp"; 
      } 
    //--> 
    </SCRIPT>
      

  2.   

    谢谢帮忙,请问如果不支持javascript有办法解决吗?谢谢
      

  3.   

    如果不支持 js就在 操作 servlet 的链接 或者 form  加个 target="_top"
      

  4.   

    如: 
    <a href="xxxxxxxxxxxxxx" target="_top" ....>&^%$#@</a>或者 <form action="........." target="_top" ............>