Aapo,
Would you care to elaborate on your solution?
ThomasB
-----Original Message-----
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 6:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Pre-Populating ActionForm (again)
> I know this too... but it's not the problem what I'm having.
>
> Here is the work flow:
>
> 1. select user from list
> - executes SelectUserAction that places UserBean in request scope.
> - forwards to edituser.jsp.
> 2. Populate form that is in edituser.jsp from UserBean
> - that form has action mapping to UpdateUserAction.
> 3. Submit form (Update)
> - UserForm gets populated and then it's validated by struts by calling
> validate method.
> - If validation fails then go back to edituser.jsp and the problem
> arises:
> there is not anymore UserBean in request scope, because
> SelectUserAction is responsible of that and it does not get
executed,
> so I get error: No xxx bean in scope null.
>
> So how do I write that form so I can populate it automatically? I mean
> that what code I should put in SelectUserAction so I can use tag like
this:
I got it to work. Thanks for everyone who replied to this issue!