在login.jsp中添加js:
if(window !=top){ top.location.href=location.href; } <script type="text/javascript"> if (window.parent != window) { window.parent.location.href = window.location.href; } </script>