RE: Business objects as ActionForms

2001-12-05 Thread Jeff Martin
On a similar topic, what is the recommended way to move data from the form beans [subclass of ActionForm] to my business objects. Is it: A) in each getter and setter, such as: No member variables public String getFirstName() { return customer.getFirstName(); } public void setFirstName(String valu

Re: Business objects as ActionForms

2001-12-05 Thread Ted Husted
This really only works if all your properties are Strings or booleans. Binary types can't be transmitted by HTTP, and so can't be represented to the user for correction. The ActionForm is a *buffer* to be used by the HTML tags. Once the data is validated, it can be converted and transferred to you