在login.jsp中 添加代码: // 在被嵌套时就刷新上级窗口 if(window.parent != window){ window.parent.location.reload(true); }