This is exactly what FormDef does. It reads your existing bean and configures a form bean for it. Reuse.
You can continue to use BeanUtils with the FormDef-configured beans as you would any other form bean, or you can also use FormDef's setFormValues()/getFormValues() and take advantage of its formatting/parsing functionality. Hubert On 11/8/05, Yujun Liang <[EMAIL PROTECTED]> wrote: > Hubert, > > You made a very good point. Thanks for your patient explanation, that's > exactly the problem I am facing, all int fields are initialized to 0. > Probably even I want to use this feature, I need design a DTO for the form, > and put all String or boolean values as properties. > > At beginning I just wanted to re-use some assets, but it turns out some idea > is not feasible, even it is doable. > > Thanks. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]