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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to