title: How to retrieve table row value in Struts2 action
body: <p>I am new to Struts 2 , please help me with the below scenario</p>
  
  <p>I have a table in Jsp using struts2 tag , All I Want to do is to retrieve the selected(checked) table row's value in the action class.</p>
  
  <p>Please let me know how to achieve it .</p>
  
  <pre><code>&lt;s:iterator value="listOfDtos" status="stat"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;s:checkbox name="delete" value="select" /&gt;&lt;/td&gt;
     &lt;td&gt;&lt;s:property value="FirstName"/&gt;&lt;/td&gt;
     &lt;td&gt;&lt;s:property value="LastName"/&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;/s:iterator&gt;
     &lt;s:submit id="delete" value="delete"/&gt;
  }
  </code></pre>
  
  <p>"<code>listOfDtos</code>" is an array list od dto and is set in the action like the below</p>
  
  <pre><code> ActionContext.getContext().getValueStack().set("listOfDtos", listOfDtos);
  </code></pre>
  
  <p>Now when the user selects any row to be deleted I want to be able to first of all retrieve this list of dtos in the  Action and iterate them to check which of the dtos have the attribute "select" set to true.  select" is an attribute of type String in the dto.</p>
  
  <p>How can this be done? Also how will the "listOfDtos" be made available in the Action.</p>