title: Struts2: How to set corresponding values of selected row in the VO class from JSP report?
body: <p>In my Struts2 application I am generating a textual report (in jsp) using iterator tag like</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
  &lt;td&gt;ID&lt;/td&gt;
  &lt;td&gt;PROOF&lt;/td&gt;
  &lt;td&gt;DELETE&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;s:iterator value="listOfVOClassObjects"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;s:property value="requestId" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;s:property value="requestChecker" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;s:property value="requestProof" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;s:checkbox name="deleteStatus" onclick="submit()"/&gt;&lt;/td&gt;
  &lt;/tr&gt;    
  &lt;/s:iterator&gt;  
  &lt;/table&gt;
  </code></pre>
  
  <p>When user click checkbox page submits and control goes to action class and I need at the same time values of the corresponding row that user has checked should set in setter methods written in VO class so that I can get all these values in my action class.        </p>
  
  <p>I tried this by writing a hidden field for every value under iterator tag like</p>
  
  <pre><code>&lt;s:hidden name=" requestId" /&gt;
  &lt;s:hidden name=" requestChecker" /&gt;
  &lt;s:hidden name=" requestProof" /&gt;
  </code></pre>
  
  <p>but its not returning the values of corresponding row but the values of all rows separated by commas.</p>
  
  <p>I also tried this by writing these hidden fields outside the iterator tag and that is returning null for every filed.</p>
  
  <p>Please help.</p>