title: call jsp from javascript with parameter
body: <p>i have created a button on its onclick() event i call a method </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  validate()
  {
  .....
  window.location='reg.jsp';
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>it doesn't take any value of the textbox to the reg.jsp page</p>
  
  <p>If i use <code>&lt;form action="reg.jsp" method="POST"&gt;</code> it takes the value of textbox to the next page but i can't do the things which are to be executed in <code>validate()</code> method</p>
  
  <p>provide a solution which may help to redirect to next page with value of textbox</p>