From: Anthony E. <me...@an...> - 2002-05-23 14:06:01
|
I think that the best approach is to create a new class which extends from the Form class and converts Struts form beans to FormData objects and then submits that data to the parent Form class. The FormData class is merely a class which encapsulates a name/value pair. An example of this is the HttpForm ( http://formproc.sourceforge.net/docs/api/org/formproc/servlet/HttpForm.html ) class which converts the parameters of an HttpServletRequest to FormData objects and then passes those FormData objects to the superclass for processing. Sincerely, Anthony Eden > -----Original Message----- > From: for...@li... > [mailto:for...@li...]On Behalf Of > CARDON Denis > Sent: Thursday, May 23, 2002 8:59 AM > To: 'for...@li...' > Subject: [FormProc-developer] bean 2 bean mapping > > > Hi Anthony, > > I have come accross your project recently while looking for is a framework > to map properties between two beans (bean to bean mapping). > First I congratulate you for the great flexibility of this library (bsf > stuff, etc.). It looks like FormProc could be a great tool to map Struts > FormBean (jakarta.apache.org/struts/) to persistence objects. > > However there is a point that bother me : for the moment, it looks like > FormProc input can only be a List of FormData element. If this is the case, > is there any plan to make input plugable like for the Storer stuff? If I > have time to get familiar with FormProc design, I may help. > > If the bean to bean mapping could be integrated into your library, I think > you could gain a lot of support from Struts users who are, like me, tired of > making mapping from FormBean to Business Objects ! > > Regards > > Denis > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > FormProc-developer mailing list > For...@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer > |