我有两个jsp页面,groups.jsp和addGroup.jsp。在groups.jsp中点击一个按钮可以打开addGroup JSP页面,在addGroup.jsp中点击“OK”按钮后,我想刷新groups.jsp。这可能怎么实现呢?
<script type="text/javascript">
function refresh() {
//Refresh page implementation here
window.close();
}
</script>
//some code here
<table>
<tr>
<td>
<h:commandButton id="buttonOK" value="#{common.ok}" type="button" styleClass="button" onclick="submitForm(); refresh();"/>
<td>
</tr>
</table>
//some code here