Multi-line forms in the Struts framework
Select BLOG in XTime1980 often encounter multi-line forms in the Struts framework, how to effectively use the auto collection mechanism provided by the Struts framework? A simple method can be provided. You can solve this problem with List. Each element in the middle is an effective object. For example: Class ... TestBean ... {private list test = new arraylist (); ...... ......]}} Each element in the Test List is another subTestBeanClass ... subTestBean {private int id; private string name; get ... () {} set ... (...) {}} so we are defined When you are, you can do this (assuming TestBean is already placed in Request):