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. encapsulating the common data
in a parent form bean and then building child form beans that extend the
form.

So that's fine.

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.

Of course I could copy that data manually, but the parent form bean is a
legacy class and has grown beyond proportion - hundreds of attributes
and contained objects.

Thanks !
Kailash.

Reply via email to