Good day. I got a form on the client side. And in that form i got a number of rows. Each row contains 3 fields (date, id and amount of money). Client can add rows (with the help of JavaScript) so server side doesn`t know how many rows will it be.
I need to map this form with the class, representing this data.
public class RowStruct
{
private Long id;
private Double amount;
private Date date;
}
public class FormStruct
{
private ArrayList<RowStruct> arrData;
{
So i need data from my form to be mapped with FormStruct object.
@RequestMapping("/send")
public ModelAndView getList(HttpServletRequest req,FormStruct formStruct)
{
ModelAndView model = new ModelAndView();
}
Is it possible and how do i do it?