在登陆login.jsp中加以下代码。即可
<script> if (top != window) top.location.href = window.location.href; </script>