hezjing
Jun 9th, 2008, 11:41 AM
Hi
In the Javadoc of BaseCommandController explained that a command class can basically be any Java class; preferably a JavaBean in order to be able to populate bean properties with request parameters.
That means, if I have the following command class,
public class UserCommand {
private int age;
private Short count;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Short getCount() {
return count;
}
public void setCount(Short count) {
this.count = count;
}
}
Spring controller will automatically populate the command object from the request?
In the Javadoc of BaseCommandController explained that a command class can basically be any Java class; preferably a JavaBean in order to be able to populate bean properties with request parameters.
That means, if I have the following command class,
public class UserCommand {
private int age;
private Short count;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Short getCount() {
return count;
}
public void setCount(Short count) {
this.count = count;
}
}
Spring controller will automatically populate the command object from the request?