Forms 从子窗口提交父窗口窗体

Forms 从子窗口提交父窗口窗体,forms,jsp,popup,window,struts,Forms,Jsp,Popup,Window,Struts,我正在显示一个带有一些选项的弹出窗口(子窗口)。一旦用户在子窗口中提交它们,我就将这些值传递给父窗口并提交表单。这些值正在提交到后端,没有任何问题。但是,在提交表单时,父窗口不会刷新 function commonPopup(popup, width, height, e, top, left) { myWindow=window.open('about:blank', popup, 'directories=0,scrollbars=yes, resizable=yes, locati

我正在显示一个带有一些选项的弹出窗口(子窗口)。一旦用户在子窗口中提交它们,我就将这些值传递给父窗口并提交表单。这些值正在提交到后端,没有任何问题。但是,在提交表单时,父窗口不会刷新

function commonPopup(popup, width, height, e, top, left) {
    myWindow=window.open('about:blank', popup, 'directories=0,scrollbars=yes, resizable=yes, location=0, menubar=0, status=0, toolbar=0, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);   
    myWindow.document.write('<HEAD>'); 
    myWindow.document.write('   <TITLE>Waiting for results</TITLE>'); 
    myWindow.document.write('</HEAD>');

}
function post_lock_unlock_value(reason,comment) {
    document.getElementById('lockReason').value = reason;
    document.getElementById('lockComment').value = comment;
    document.getElementById('triggerActionId').value='';
    document.getElementById('admRepairLock').submit();
}
<s:form name="lock" id="lock" action="my.action">
    <s:submit value="Lock Repair Profile" id="lockIndicator" name="lockIndicator"
                                                            onclick="commonPopup('lockProfile',450, 200, event,'lockRepairProfile');" cssStyle="width:200px" theme="simple"/>
</s:form>

在关闭子窗口之前,按如下方式刷新父窗口(在
self.close()
之前添加此项):

试试这个:

var newPartyId = $("#desc_textarea").val();
window.opener.$("#desc_textarea").val(newPartyId);

这是在尝试重新加载页面,就像在浏览器中按F5键一样。我的表单提交正确触发了操作。但是一旦操作返回刷新的页面,页面就不会移动。或者如果操作指向另一个/不同的页面。窗口仍在该页中。@NitinGurram是否关闭子窗口?
if ( window.opener && !window.opener.closed ) {
   window.opener.location.reload();                     
   window.opener.focus();
}
var newPartyId = $("#desc_textarea").val();
window.opener.$("#desc_textarea").val(newPartyId);