Hello,
How can I pass all the request parameters into a bean ?
For example:
class User {
private int id;
private String name;
private String sex;
private Dat birth;
private boolean status;
}
How can I set all the request parameters into the User if those parameters name contains any (id, name, sex, birth and status) ?
The utility prototype :
public Object getFormBean(Class formClass, HttpServletRequest request) {
If you use Struts, this is done for you.