You can redirect instead of forwarding.  Of course, as you know, this creates a new 
request and so you can't expect to use anything that is in request scope in the list 
page.

Sri

> -----Original Message-----
> From: carlos list [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 30, 2003 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: Reload after forward executes the previous action.
> 
> 
> 
> Hello list.
> 
> This is my case:
> 
> I have one action called NewIssue and one called ListIssues.
> 
> NewIssue processes a very simple input form in newissue.jsp. 
> ListIssues gives me a list of all the issues entered by the user in 
> listissues.jsp.
> 
> In my struts-config.xml file i have:
> <action path="/NewIssue"
>     type="cde.controller.agenda.NewIssueAction"
>     name="newIssueForm"
>     input="/agenda/newissue.jsp">
> <forward name="struts.action.success" path="/ListIssues.do"/> 
> <forward name="struts.action.failure" 
> path="/genericerror.jsp"/> <forward 
> name="struts.action.reload" path="/agenda/newissue.jsp"/> </action>
> 
> Everithing works fine here: I go to the input page, submit 
> the data, and the 
> controller redirects me to the list page.
> 
>   BUT if i hit reload here,after forward, the action executes 
> the submit 
> again. I noticed that the url in the address bar of the 
> browsers reamains 
> the same (NewIssue.do?...)
> 
> Any ideas to prevent this?  how can I avoid the re-execution 
> of the action 
> after forward.
> 
> I tried doing form.reset() at the end of the execute() method 
> but is the 
> same.
> 
> Thanks in advanced.
> 
> Carlos.
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> 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