I *think* I understand what he's trying to do Hubert, but I could be wrong...
I think it's along the lines of "here's a page to edit an employee, and every time I hit Continue I want to see that same page again but with no values (think a loop to add a number of employees)". Am I close Gaet? If so, ignoring the debate about whether you are actually going about this right in the first place, I think what you want to do is add redirect=true to your editNextEmployee forward element. The idea here being that when you forward to editNextEmployee from your Action, the SAME request is being used, and there is of course the ActionForm still in scope. By setting redirect=true, you are telling the BROWSER to redirect to it, which should result in a new ActionForm in request scope being instantiated. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, March 21, 2005 12:31 pm, Hubert Rabago said: > My message didn't really include a "solution", since like I said, it's > not clear to me what you're trying to do. :) > > Hubert > > On Mon, 21 Mar 2005 18:23:36 +0100, Gaet <[EMAIL PROTECTED]> wrote: >> Yes, I want to start a new cycle..but your solution seems to not >> work.... >> >> regards, >> >> ----- Original Message ----- >> From: "Hubert Rabago" <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" <user@struts.apache.org> >> Sent: Monday, March 21, 2005 5:59 PM >> Subject: Re: How to clear ActionForm before calling >> mapping.forward(...)??? >> >> > It's not exactly clear what you're trying to do. After your action >> > executes, you just call the same action again. With your forward path >> > set to /employeeDetail.do?reqCode=edit, the same request will go >> > through the same action, only this time there's an additional request >> > parameter. >> > Is it possible you meant to redirect to start a new request cycle? If >> > so, change your forward to: >> > >> > > <forward name="editNextEmployee" >> > > path="/employeeDetail.do?reqCode=edit" redirect="true"/> >> > >> > Hubert >> > >> > On Mon, 21 Mar 2005 17:50:22 +0100, Gaet <[EMAIL PROTECTED]> wrote: >> > > Hello the list! >> > > >> > > I have an action-mapping with a forward action that recall the same >> action >> > > mapping in order to display other informations. >> > > My problem is that my form is submitted and not cleared in my >> > > mapping.forward("editNextEmployee")!!! >> > > >> > > How to clear my form before to call the mapping.forward? >> > > Thanks >> > > >> > > Example of my struts-config.xml: >> > > >> > > <action path="/employeeDetail" >> > > type="org.mycompany.EmployeeAction" >> > > name="employeeForm" >> > > validate="false" >> > > parameter="reqCode" >> > > scope="request"> >> > > <forward name="continue" path="/DnaSalarieDetail.jsp"/> >> > > <forward name="back" path="/employeeList.do?reqCode=list"/> >> > > <forward name="editNextEmployee" >> > > path="/employeeDetail.do?reqCode=edit"/> >> > > </action> >> > > >> > >> > --------------------------------------------------------------------- >> > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]