model對象中有一對多的關聯關系在頁面使用:<form:form action="" commandName="form" method="post">如何設置一對多關聯的對象?比如有班級類:public class ClassObj{ private String name; private Set<Student> students; /** getter setter **/}學生類:public class Student{ private String name; /** getter setter **/}那頁面的<form:form>標簽該怎么寫,才能在一個form中設置好一對多的關聯對象?
添加回答
舉報
0/150
提交
取消