On Thu, 9 Jan 2003, Franco Caponi wrote:

> Date: Thu, 9 Jan 2003 18:39:05 +0100
> From: Franco Caponi <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: DynaActionFormClass.getDynaActionFormClass
>
> My previous post is not correct (excuse me)... because now i have
> successfully called RequestUtils.createActionForm() with the cast needed:
> Code was correct,
> My error was the mapping name that must not end with .do.
>
>
> Problem is that when i have prepopulated the ActionForm, saved it on the
> request and return the ActionForward that forward to another Action class
> (/prepareModify.do) the controller launch the new Action with the ActionForm
> cleared (I think that try to populate it from the request).
>

Why are you trying to chain actions here?  If you've already prepopulated
the form bean, you can just forward directly to the JSP page that will
display it.  This is exactly the sort of reason that I frown on chaining
actions as a general technique in Struts -- it has unintended side effects
if the actions you are using have form beans declared for them.

The logic that creates the form bean and the logic that populates it
should be in (or called by) the same action.

Craig



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to