You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gaet <ga...@free.fr> on 2005/03/24 10:55:48 UTC
Re: How to clear ActionForm before callingmapping.forward(...)???
Thanks for all of you that help me....and the winner is : Eric (Mon sauveur,
merci ;o)
Remember : I want only to start a new cycle by recalling the same action but
with another data. So I want to clean my form between these two calls.
(Frank has explained that quite well)
But I don't understand why it doesn't work when I define "redirect=true" in
my forward tag in struts-config.xml?
Morever the solution of mark that was :
request.removeAttribute("employeeForm") do not work either!
However, the Eric's solution works pretty well! here is recommendation :
ActionForward cleanDisplay= mapping.findForward("nextEmployeeToEdit");
cleanDisplay.setRedirect(true);
return cleanDisplay;
If you can explain me why "redirect=true" doesn't work it would be nice...
Thanks!
----- Original Message -----
From: "Eric Lemle" <er...@ihc.com>
To: <us...@struts.apache.org>
Sent: Tuesday, March 22, 2005 12:11 AM
Subject: Re: How to clear ActionForm before callingmapping.forward(...)???
> Is this what you are looking for? ....
>
> ActionForward cleanDisplay= new ActionForward("/myAction.do?");
> cleanDisplay.setRedirect(true);
> return cleanDisplay;
>
>
> put that in your action and run it.
>
> -Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org