Tôi đang tìm kiếm sự khác biệt giữa mùa xuân: ràng buộc và hình thức: thư viện thẻ biểu mẫu khi gửi biểu mẫu.Mùa xuân MVC: Sự khác biệt giữa mùa xuân: ràng buộc và hình thức: mẫu
Một đoạn JSP của tôi là như sau:
<form:form modelAttribute="testRulesForm">
....
<td>
<form:checkbox path="rules[${counter.index}].isActive" value="rules[${counter.index}].isActive"/>
</td>
<td>
<form:select path="rules[${counter.index}].leftCondition.name">
<form:options items="${testRulesForm.ruleAttributes}" itemLabel="name" itemValue="name" />
</form:select>
</td>
<td>
<form:select path="rules[${counter.index}].operator">
<form:options itemLabel="operator" itemValue="operator" />
</form:select>
</td>
....
Thấy như tôi đã biến con đường của tôi quy định và điều này sẽ bị ràng buộc để modelAttribute của tôi, điều này không có nghĩa là tôi không cần mùa xuân: bind?
Cảm ơn
Cũng được giải thích, cảm ơn – DJ180