Isn't that what Struts forms do out of thye box.

Harsh.

-----Original Message-----
From: Eric Chow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:29 AM
To: Struts User List
Subject: How can I pass all the request parameters into a bean ?


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) {


}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to