在login.jsp中加: <script language="JavaScript"> if (window != top){ top.location.href = location.href; } </script>