在frame.jsp中frameset中有两个frame框架,一个a.jsp向b.jsp提交,b.jsp判断session是否为空,如果为空就刷新frame.jsp
------解决方案--------------------
document.getElementById("ifmid").contentWindow.location.reload();//刷新,session自己判断吧
------解决方案--------------------
看你代码像是b.jsp把frame.jsp加载进来了? 你在iframe页面发送重定向请求,但是response.sendRedirect是没有target属性的,如果想从跳出到frame.jsp,要加上html属性。 例如 response.getWriter().write( "<html><script>window.open(xx.jsp)</script></html>")