Have you tried writing reset code in FromB.reset()?

Or perhaps you can create FormB yourself in ActionA and store it in the
appropriate scope explicitly (although I have never tried this myself). I
think the request parameter with the common name is the problem here. Can
you forward to ActionB by somehow overriding the value of that request
parameter? Or (of course) you can name the parameters differently.

Tell me if it works?

Affan

----- Original Message -----
From: "Victor Batista" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 27, 2002 4:07 PM
Subject: Cascade actions execution!


> Hello!
> I have two Actions which are called on cascade:
> ActionA -> Forward to ActionB (without Redirect) -> JSP constructs HTML
> Page.
>
> Action A has one form, say FormA and ActionB has a different form, FormB.
> When the client requests ActionA, a new FormA is created and filled
> correctly. When ActionA finishes, it forwards control to ActionB. A new
> FormB is created. In my case, FormA and FormB have a common parameter, and
> FormB gets that parameter filled. Although I don't want this to happen.
How
> can I, after ActionA finishes, clean all the Parameters in such a way that
> FormB will be created, but without parameters (or even not created at
all).
> I need to reset all parameters from struts. How can I do this? I have
reset
> FormA, but the values still appear on FormB. How can I do this? I don't
want
> to make a redirect from ActionA to ActionB.
> I would really appreciate your help.
>
> Thanks in advance,
> Victor Batista
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to