title: form auto submits multiple times
body: <p>I need to send a few hidden variable to the struts controller on auto submit of the form. I am sending the  variables just fine but since I have the form submit in the document on ready function. The form re submits infinitely . I need to stop the submit after first time submit . Any suggestions ? Below is what I tried. </p>
  
  <p>Code </p>
  
  <pre><code>&lt;script&gt;
  $(document).ready (function () { 
  document.getElementById ('action').value ='hello';
  document.getElementById ('myform').submit ();
  })
  &lt;/script&gt;
  
  &lt;form action="/rlogin" id="myform"&gt;
  &lt;input type=hidden id=user value=you&gt;
  &lt;input type=hidden id=action /&gt;
  </code></pre>
  
  <p></p>