riginal Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2007 3:47 PM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Ok, that's quite interesting..
>
> I th
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Ok, that's quite interesting..
>
> I think I just need to find a efficient way of doing the deep copy
> because my parent class has thousands of attributes in all including
> nested attributes..
Hmm "thousands" of attributes? I doubt you ar
tober 03, 2007 2:37 PM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thanks a lot Rick. That gives me a new area to explore.
>
> The BeanUtils method - BeanUtils.copyProperties(Object target, Object
&
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thanks a lot Rick. That gives me a new area to explore.
>
> The BeanUtils method - BeanUtils.copyProperties(Object target, Object
> src) - does give me a shallow copy of an object, Im trying to figure out
> how to get a deep copy..
I might
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2007 7:21 AM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thaks Rick.
>
> This will give me an instance of the parent bean OR the child bean.
>
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thaks Rick.
>
> This will give me an instance of the parent bean OR the child bean.
>
> What I need is a child bean pre populated with data from the parent
> bean.
Ok, so just get ParentBean and then populate your subclassed bean...
publi
--- "Kothari, Kailash" wrote:
> This will give me an instance of the parent bean OR
> the child bean.
>
> What I need is a child bean pre populated with data
> from the parent bean.
I'd probably consider hooking in to the request
processor (or chain if you're using 1.3, I suppose)
and implement t
ifferent session scoped instances of the same
type of ActionForm in the session - the key is the action mapping name
they are tied to.)
-Original Message-
From: Kothari, Kailash [mailto:[EMAIL PROTECTED]
Sent: Monday, October 01, 2007 5:31 PM
To: user@struts.apache.org
Subject: Inheri
On 10/1/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> What I also need is that, when a child form bean is instantiated by
> Struts, I want Struts to check if there is an instance of the parent
> form bean in the session and if so, pre populate that data from the
> parent to the child form bean
Hello,
I have an interesting Struts design requirement and Im a little lost,
would really appreciate help !
I have multiple form beans in my application and a lot of them share
data.
Instead of duplicating the common attributes in each form bean, I am
opting for an more elegant approach, i.e. en
10 matches
Mail list logo