How do I bind HTML table data to a java object in a spring controller?
Posted
by predhme
on Stack Overflow
See other posts from Stack Overflow
or by predhme
Published on 2010-05-19T15:40:19Z
Indexed on
2010/05/19
16:00 UTC
Read the original article
Hit count: 203
I have a spring MVC application using JSP as my view technologies with Jquery for AJAX. I have a table such as the following:
<table>
<tr>
<td>name1</td>
<td>value1</td>
<td>setting1</td>
</tr>
<tr>
<td>name2</td>
<td>value2</td>
<td>setting2</td>
</tr>
</table>
I need to serialize this table so that it can later be bound to an object in my controller. However the jquery serialize() method only works on form fields. What would be the best approach to get the table data into the HTTP request so that I can later bind it to a java object?
© Stack Overflow or respective owner