title: Spring: How to submit form binding when using popup window?
body: <p>I have a JSP that submits via javascript to a controller.
  Everything works fine, but when I try to open the next page on a Popup window,
  I noticed that the data on the Form Binding is not submitted to the Controller: </p>
  
  <pre><code>function showDocumentPreview() {
  //This is working
  //document.getElementById('form').action = "&lt;c:url value='/forms/showDocumentPreview.co' /&gt;";
  //document.getElementById('form').submit();
  
  //This is NOT working
  var url = "&lt;c:url value='/forms/showDocumentPreview.co' /&gt;";
  window.open (url, "popup","location=0,status=0,scrollbars=1,width=480,height=640");
  }
  </code></pre>
  
  <p>Then in my controller:</p>
  
  <pre><code>@RequestMapping(value = "/forms/showDocumentPreview.co", method = {RequestMethod.GET,RequestMethod.POST })
  public ModelAndView showDocumentPreview(HttpServletRequest request, HttpServletResponse response, @ModelAttribute("form") Form form) {
  System.out.println(form.getFormName());  //this returns null when I used popup, but it have value when not using popup.
  </code></pre>
  
  <p>Please kindly help
  thank you very much sir/madam </p>