I am new to thyemleaf , I need some basic code to read html table data ( which was constructed in ArrayList ) to controller class
Consider below is the th: each block
<tr class="table-row" th:each="account, itemStat : ${accountentry}">
<td class="table-data" th:text="${itemStat.count}"></td>
<td class="table-data" th:text="${account.accountnumber}"></td>
<td class="table-data" th:text="${account.field1}"></td>
<td class="table-data" th:text="${account.field2}"></td>
</tr>
How to pass above data to controller class I already posted
I already asked similar question(link) since no response yet going back to basics. Appreciated for your help in advance,thanks.
I got answer from here Thymeleaf form submit with ArrayList Object
Please refer above link of my similar question and answer for someone who is searching solution like me