日期:2014-05-16  浏览次数:20522 次

jsp跳转,刷新问题。
chuzuAll.jsp跳转到guihuan.jsp:
JScript code
function guihuan(ID)
           {
                var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});
                pop.setContent("contentUrl","<%=path %>/admin/chuzu/guihuan.jsp?ID="+ID);
                pop.setContent("title","归还");
                pop.build();
                pop.show();
           }

guihuan.jsp跳转到guihuan_res.jsp:
JScript code
window.location.href="<%=path %>/admin/chuzu/guihuan_res.jsp";

现在希望关闭了guihuan_res.jsp可以刷新chuzuAll.jsp
新手请教

------解决方案--------------------
不知道pop怎么实现的,如果是open,你可以试 window.opener.loacation.reload();
------解决方案--------------------
使用一中间页面:
如:
<%@ page language="java" pageEncoding="utf-8"%>
<%String path = request.getContextPath();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<script type="text/javascript">
function f_load(){
window.open("chuzuAll.jsp","rightFrame");//如果是框架的话 rightFrame为框架name 
  close_win();
}
function close_win(){//直接关闭打开的页面 刷新前一页面
window.onload = null;
window.open('','_parent','');
window.close();

window.onload=function(){f_load();}
</script>
</head>
<body>
</body>
</html>