struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Reumann" <>
Subject Re: Inheritance within form beans
Date Tue, 02 Oct 2007 00:57:27 GMT
On 10/1/07, Kothari, Kailash <> 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.

Assuming Struts 1.x...

I can't recall the exact syntax of how the forms are stored in the
session but I know it invovles the  ActionMapping name in the
StrutsConfig, so you could try:


(remember you could have different session scoped instances of the
same type of ActionForm in the session - the key is the action mapping
name they are tied to.)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message