struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <quere...@etilize.com>
Subject Re: Cascade actions execution!
Date Fri, 27 Dec 2002 11:40:53 GMT
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" <vbatista@present-technologies.com>
To: <struts-user@jakarta.apache.org>
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:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message