wood burning stoves 2.0*
The moose likes Struts and the fly likes redirect success action to previous page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "redirect success action to previous page" Watch "redirect success action to previous page" New topic
Author

redirect success action to previous page

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
hi!
I would like to redirect a success action to a page that the user visited before visiting the page that he had clicked submit from him.
how can i do it?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Use a "redirectAction" result type.

Assuming you're using Struts 2, which you don't state.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: redirect success action to previous page
 
Similar Threads
Struts Action to Servlet Chaining
Post-Request-Get technique
how can i forward action mapping in struct-config.xml?????????????
Where to populate values for drop down box?
Actionforward Problem