title: jquery popup submit should refresh parent window with struts2 action call
body: <p>I have struts2 page with a modal window as include in a page. Onclick of a button popup will open and after entering values and clicking on submit the popup will close and parent page to be refreshed.</p>
  
  <p>My Jsp: both popup and parent are in same jsp.</p>
  
  <pre><code>Main page
  &lt;form id="Parent"&gt;
  &lt;div id=container&gt;
  &lt;table&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;input type="button" onclick="openPopup()"&gt;
  &lt;/form&gt;
  
  &lt;form id=popup&gt;
     &lt;input type="text" id="comments"&gt;
     &lt;input type="button" id="popupBtn"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Js file</p>
  
  <pre><code>$.post("updateDB",{comments:comments}, function(){
      $('#popup').dialog('close');
      $('#container').load("refreshParent #container");
  });
  </code></pre>
  
  <p>Updating DB and popup close is working but the .load is not working, can someone please help me where am I doing wrong.</p>
  
  <p>Two things one the refreshParent action is not called, if it is called I need to refresh the parent form as well, how do I refer a DIV id of another form.</p>
  
  <p><strong>UPDATE:</strong> I forgot to mention that there are few rows with checkboxes which needs the submit values on click of submit on popup.</p>
  
  <p>Thanks in advance.</p>