In one of my web pages I have a HTML table. This table will have 0 or more rows and each row has 3 columns.
It looks like this:
<table>
<tr>
<td>Row1-Col1</td>
<td>Row1-Col2</td>
<td>Row1-Col1</td>
</tr>
<tr>
<td>Row2-Col1</td>
<td>Row2-Col2</td>
<td>Row3-Col1</td>
</tr>
</table>
I want to transfer the values of the columns (content of td's) to Action class.
Is there a way to
- get the number of rows in a table
- transfer the values using javascript and how will I get them in my action class
Struts 2 btw.
Thanks