jsp 关闭子窗体刷新父页面

1、第一步:在java后台类中设置,关闭弹出框后需要请求的菜单id

        String queryString = this.getRequest().getQueryString();
        if(null!=queryString){
	   String mmid = queryString.split("=")[1];
           this.getRequest().getSession().setAttribute("mmid", mmid);//获取菜单码,用于在账户分配给客户经理后页面跳转

       }

 
  
2、第二步:在打开弹出框后,输入关闭后需要请求的url.如:window.location.href="";
     function showedit(){
	  window.showModalDialog(""
		,{"win":window,"objkind":"1","id":$("#id").val()}
			,"status:yes;directories:yes;scrollbars:yes;dialogWidth:800px;dialogHeight:500px");
	
	  window.location.href="${ctx}/evalparams/sobjectconversion.action?mid="+'${mmid}';
	 
	}


你可能感兴趣的:(web前端)