struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaet" <gaetm...@free.fr>
Subject Re: How to clear ActionForm before callingmapping.forward(...)???
Date Thu, 24 Mar 2005 09:55:48 GMT
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" <eric.lemle@ihc.com>
To: <user@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


Mime
View raw message