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.
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 ?
This is my JSP:
<table id="fragmentTable" style="height: 100%; width: 100%">
<tr class="tableRow" style='height: 5%;'>
<td class='' style='position: absolute; left: 75%;'>
<button value="Add Row" type="button" onclick="return addRow1();">Add Row</button>
<button value="Delete Row" type="button" onclick="return deleteRow ('dataTable')">Delete Row</button>
</td>
</tr>
<tr>
<td colspan="2"><br><br>
<table id="dataTable" border="1" width=100% height=30% class='blueBorder'>
<thead>
<tr class='rowHeader'>
<th width='14%'>Select</th>
<th width='14%'>Opening Brace</th>
<th width='14%'>Parameter</th>
<th width='14%'>Relational Operator</th>
<th width='14%'>Value</th>
<th width='15%'>Closing Brace</th>
<th width='15%'>Logical Operator</th>
</tr>
</thead>
<tbody>
<tr class='rowData' id=1>
<td>
<s:checkbox theme="simple" id="sel" name="GRF_FRAGID" value="false" /></td>
<td ><s:select headerKey="-1" headerValue="Select" list="#{'1':'(', '2':'((','3':'(((','4':'((((','5':'((((('}" name="GRF_OPNGBRCES" /></td>
<td>
<s:select label="Mode" headerKey="-1" headerValue="Select" list="#{'1':'=', '2':'!='}"
name="GRF_OP" />
</td>
<td>
<s:textfield name="Country"/>
</td>
</tr>
</tbody>
</table>