Vincent, Before you go this route, check out FormDef plugin first. http://formdef.dev.java.net It will register Struts forms based on your VOs. There are several reasons why you shouldn't use VOs as your form beans and vice versa (as other msgs in this thread explain). FormDef would allow you the development savings you mention and also has functionality to translate from one to the other.
Hubert On 7/7/05, Vincent <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently designing and developping an enterprise J2EE application > based on Struts. > In this application there's a layer of Data Access Object which abstract > the underlying persistent storage. > For populating my struts' *Form I've imagined first a transfert between > forms and DAO based on Value Object, associated with helper classes for > translating from one type to another. > And I realized that struts Form can be in some situations quite good > transfert objects, and by doing so we economize development of both > helper classes and VO classes. > > What do you thing about using forms as VO? Do you think it's a dirty > solution? Forms are often mirrors of the database's table. > > Thank you for your opinion. > > Vincent. > > > --------------------------------------------------------------------- > 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]