我有这个模型:
public class User{
private String name;
private String Organization;
private Strin OS;
..Setter and Getters
}
而这种形式:
<form:form commandName="User" method="post">
<label for="name">Name:</label>
<form:input path="name" />
<form:errors path="name"></form:errors>
<br />
<label for="name">Organization:</label>
<form:input path="organization" />
<form:errors path="organization"></form:errors>
我可以添加一个输入“姓氏”,然后将输入“名称”组合成一个路径=“名称”吗?