在jsp页面加入如下代码,亲测有效
$(function(){
if (window.name != 'bencalie') { location.reload(); window.name = "bencalie"; } else { window.name = ""; }
})