在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>
原文:http://www.cnblogs.com/james-roger/p/5658623.html