RE: Reload after forward executes the previous action.
Excellent. Problem solved. Thanks a lot. From: "Sri Sankaran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: Reload after forward executes the previous action. Date: Thu, 30 Jan 2003 14:55:25 -0500 Set the redirect attribute of the appropriate to 'true'. Sri > -Original Message- > From: carlos list [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 2:51 PM > To: [EMAIL PROTECTED] > Subject: RE: Reload after forward executes the previous action. > > > > > > Sounds good. How can I do that? > > > > > >From: "Sri Sankaran" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: RE: Reload after forward executes the previous action. > >Date: Thu, 30 Jan 2003 14:29:24 -0500 > > > >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: > > > > > type="cde.controller.agenda.NewIssueAction" > > > name="newIssueForm" > > > input="/agenda/newissue.jsp"> > > > > > > > > > path="/agenda/newissue.jsp"/> > > > > > > > > > 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] > > > _ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > - > 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] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reload after forward executes the previous action.
Set the redirect attribute of the appropriate to 'true'. Sri > -Original Message- > From: carlos list [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 2:51 PM > To: [EMAIL PROTECTED] > Subject: RE: Reload after forward executes the previous action. > > > > > > Sounds good. How can I do that? > > > > > >From: "Sri Sankaran" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: RE: Reload after forward executes the previous action. > >Date: Thu, 30 Jan 2003 14:29:24 -0500 > > > >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: > > > > > type="cde.controller.agenda.NewIssueAction" > > > name="newIssueForm" > > > input="/agenda/newissue.jsp"> > > > > > > > > > path="/agenda/newissue.jsp"/> > > > > > > > > > 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] > > > _ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > - > 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]
RE: Reload after forward executes the previous action.
Sounds good. How can I do that? From: "Sri Sankaran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: Reload after forward executes the previous action. Date: Thu, 30 Jan 2003 14:29:24 -0500 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: > > type="cde.controller.agenda.NewIssueAction" > name="newIssueForm" > input="/agenda/newissue.jsp"> > > > path="/genericerror.jsp"/> > name="struts.action.reload" path="/agenda/newissue.jsp"/> > > 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] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reload after forward executes the previous action.
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: > type="cde.controller.agenda.NewIssueAction" > name="newIssueForm" > input="/agenda/newissue.jsp"> > > path="/genericerror.jsp"/> name="struts.action.reload" path="/agenda/newissue.jsp"/> > > 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]