struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaudhary, Harsh" <HCHAU...@amfam.com>
Subject RE: How can I pass all the request parameters into a bean ?
Date Thu, 25 May 2006 14:22:30 GMT
Isn't that what Struts forms do out of thye box.

Harsh.

-----Original Message-----
From: Eric Chow [mailto:eric138@gmail.com] 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message