父页面放到head下面
<script type="text/javascript">
function refreshPage(){
this.location = window.location;
}
</script>
子页面也是放到head下面
<%if(request.getAttribute("actionflog")!=null && "modiok".equals(request.getAttribute("actionflog").toString())){%>
<script language="javascript">
window.opener.refreshPage();
window.close();
</script>
<%}%>