I can\'t believe how something this simple can seem so hard to do in Struts 2.
This is approximately what I would like to do as it would be done in Java.
This is how the JSP code will look like:
Following is the bean(XBean) whose List is used in the JSP:
public class XBean
{
private ArrayList lstString=new ArrayList();
private String name;
private Double amt;
private Integer id;
//Getters and setters of fields
}
Now you can simply have a field lstBean with setters in your submitting action (saveaction) and hey you are done.