File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Page not refreshed using Struts actions" Watch "Page not refreshed using Struts actions" New topic

Page not refreshed using Struts actions

Billy Blanks

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/" 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: and 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.

I agree. Here's the link:
subject: Page not refreshed using Struts actions
It's not a secret anymore!