struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: How to clear ActionForm before calling mapping.forward(...)???
Date Mon, 21 Mar 2005 16:59:57 GMT
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 <gaetmail@free.fr> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message