title: Hidden element in jsp value passing as href parameter
body: <p>I am using spring,i need to create XML file when i click on a button.
  I need to pass the value of a hidden element as parameter in href.</p>
  
  <p>How can i achieve this , any help would be appreciable </p>
  
  <p>snippet of my code am attaching here</p>
  
  <pre><code>   &lt;div class="portlet-body no-more-tables" id="testf"&gt; 
      &lt;input type="hidden" id="testID" value="dd"&gt;&lt;br/&gt; &lt;div style="margin-left:100px"&gt;
        &lt;a style="" href="incident/test/testHref.do?testID=&lt;%=testID%&gt;" id="createReport"&gt;     Create Report &lt;/a&gt; 
      &lt;/div&gt;
       &lt;/div&gt;
  </code></pre>