title: How to get values of the rows of a table that are filled in the jsp in the Action class in Struts 2?
body: <p>I have the following jsp in which I have an option of adding and deleting rows of the table and in each row of the table which have the same fields I have to fill in  the options and submit the form.</p>
  
  <p>In the action class how do I retrieve the values of the row which I have filled in the JSP as there are more than one row that I fill in the table ?</p>
  
  <p>This is my JSP:</p>
  
  <pre><code>&lt;table id="fragmentTable" style="height: 100%; width: 100%"&gt;
  
      &lt;tr class="tableRow" style='height: 5%;'&gt;
        &lt;td class='' style='position: absolute; left: 75%;'&gt;
      &lt;button value="Add Row" type="button" onclick="return addRow1();"&gt;Add Row&lt;/button&gt;
      &lt;button value="Delete Row" type="button" onclick="return deleteRow          ('dataTable')"&gt;Delete Row&lt;/button&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
  
       &lt;tr&gt;
      &lt;td colspan="2"&gt;&lt;br&gt;&lt;br&gt;
      &lt;table id="dataTable" border="1" width=100% height=30% class='blueBorder'&gt;
      &lt;thead&gt;
      &lt;tr class='rowHeader'&gt;
            &lt;th width='14%'&gt;Select&lt;/th&gt;
            &lt;th width='14%'&gt;Opening Brace&lt;/th&gt;
            &lt;th width='14%'&gt;Parameter&lt;/th&gt;
            &lt;th width='14%'&gt;Relational Operator&lt;/th&gt;
            &lt;th width='14%'&gt;Value&lt;/th&gt;
            &lt;th width='15%'&gt;Closing Brace&lt;/th&gt;
            &lt;th width='15%'&gt;Logical Operator&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
  
      &lt;tbody&gt;
  
  
          &lt;tr class='rowData' id=1&gt;
  &lt;td&gt;
  &lt;s:checkbox theme="simple" id="sel" name="GRF_FRAGID" value="false" /&gt;&lt;/td&gt;
  &lt;td &gt;&lt;s:select headerKey="-1" headerValue="Select" list="#{'1':'(', '2':'((','3':'(((','4':'((((','5':'((((('}" name="GRF_OPNGBRCES" /&gt;&lt;/td&gt;
  &lt;td&gt;
  &lt;s:select label="Mode" headerKey="-1" headerValue="Select" list="#{'1':'=', '2':'!='}"
      name="GRF_OP" /&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;s:textfield name="Country"/&gt;
  &lt;/td&gt;
  
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>