title: Lost parameters during form submission to open a pdf in new window
body: <p>My java webApp (struts2 and jQuery) has a jsp with a form:</p>
  
  <pre><code>&lt;s:form id="theForm" action="stampaPosizioneFinanziaria" target="_new"&gt;
  </code></pre>
  
  <p>and a jQuery button:</p>
  
  <pre><code>&lt;a id="stampaPerCliente"&gt;Stampa standard&lt;/a&gt; // rendere by $('#tampaPerCliente').button();
  </code></pre>
  
  <p>On button click:</p>
  
  <pre><code>$('#stampaPerCliente').click(function(){ avviaStampa(0); });
  </code></pre>
  
  <p>...</p>
  
  <pre><code>function avviaStampa(tipoStampa) {
    $('[name=tipoStampa]').val(tipoStampa); // I set a hidden field
    $('#theForm').submit();
        // tried document.forms[0].submit(); too, same behavior.
  }
  </code></pre>
  
  <p>So, the new page opened (the form target is _new) calls an action that read the paramters form and displays a pdf.
  Everything works fine BUT: on IE when I click the button first time it works, second time doesn't, third time does and so on.
  The 'doesn't work' means the action has every input parameters null! I monitored the request and on IE there aren't request parameters! (even times, not odd times!)
  It works fine on Chrome and FF.</p>
  
  <p>Help please.</p>