This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Page not refreshed using Struts actions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Page not refreshed using Struts actions" Watch "Page not refreshed using Struts actions" New topic
Author

Page not refreshed using Struts actions

Billy Blanks
Greenhorn

Joined: Apr 13, 2011
Posts: 11
Hello all,
I am working a task that allows a user to perform an action on a jsp page which calls a struts action "/path/updateactivestatus.do" and upon successful processing, control should be redirected to the “/path/fwdtestformsdb2” action which builds mynewpage.jsp page for the user to be forwarded to. But instead of the user being redirected, the user remains on the original page. When I look in firebug's Net > XHR, I can see that my two actions are being called: updateactivestatus.do and fwdtestformsdb2.do. If I expand the first ajax call and look in both the response and HTML, I can see that the /path/mynewpage.jsp page is constructed with the updated values from the action that the user performed. But I am not understanding why the browser does not refresh to the page in the Response? Any and all help is greatly appreciated.

halfdomedog
 
 
subject: Page not refreshed using Struts actions
 
Similar Threads
Using Struts 1 with Prototype
Session problem
Struts form which submit many times...
Session timeout and redirecting to login.
struts2 workflow question