thanks that was what I was exactly looking for!

nice greetings
Starky

---------- Initial Header -----------

>From      : "David G. Friedman" [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : Wed, 26 Oct 2005 02:48:43 -0400
Subject : RE: how to copy the properties of one Struts form-bean to another?







> Starky,
>
> The BeanUtils have been mentioned often on this list.  You can find it in
> the Apache Commons BeanUtils library, which is found at:
> http://jakarta.apache.org/commons/beanutils/
>
> You are probably looking for BeanUtils.copyProperties() which you can find
> an explanation for in their API:
> http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api
> /
>
> Even though the various releases of Struts should contain a slightly
> different version of the commons-beanutils.jar file, all of those jars in
> your Struts distribution should have the that class and method.
>
> Regards,
> David
>
> -----Original Message-----
> From: À [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 26, 2005 2:29 AM
> To: Struts Users Mailing List
> Subject: Re: how to copy the properties of one Struts form-bean to
> another?
>
>
> you can use apache common BeanUtils
>
> 2005/10/26, starki78 <[EMAIL PROTECTED]>:
> >
> > Hi
> >
> > I've the following problem:
> >
> > Form 1:
> > String a;
> > String b;
> > String c;
> >
> >
> > Form 2:
> > String a;
> > String b;
> >
> >
> > //--> I've to implement the following method
> > public Form2 copy(Form1) {
> >
> > }
> >
> > //-->only the properties that are identical in the form
> > shall be copied
> > Is there already any bean-util implemented?
> > I didn't find anything in the java-utils package
> >
> > Nice Greetings Starky
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to