I have a class A having field of List of class B
class A{
private String x;
private String y;
private List<B> list;
}
class B{
private string x1;
private String y1;
}
In JSP, I have a form where there is input field for x and y and c:foreach select for B.
My question is that how to make a form so that i can pass a list of objects of type B inside A and send it to the spring controller.
So far i am getting a list with only one element.