File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Browser Back button | Struts bridge Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Browser Back button | Struts bridge" Watch "Browser Back button | Struts bridge" New topic
Author

Browser Back button | Struts bridge

Sandy Sagar
Greenhorn

Joined: Sep 15, 2011
Posts: 2
Hi All,

I m facing problems while using browser back button. I m using struts bridge with CMS Jahia. Normal flow is

All my actions use DispatchAction as base class

Action A-Init() renders JSP A
Action A-Submit submits JSP A and chained to Action B init() which renders JSP B

<action path="/actionA" name="formA"
type="ActionA"
scope="session" validate="false"
parameter="method">

<forward name="renderA" path="screenA.jsp" />
<forward name="submitA" path="/actionB.do?method=init" redirect="true" />
</action>

<action path="/actionB" name="formA"
type="ActionB"
scope="session" validate="false"
parameter="method">
<forward name="renderB" path="screenB.jsp" />
</action>


Now issue is when on screen B if I press control F5 (refresh), Action B init is called again and screenB.jsp is rendered which is fine. But if I click browser back button, I expected Action A submit to be called but it is again calling Action B init and rendering screenB.jsp.

This is not happening in any other actions of the application.

Could somebody please tell me if I m missing anything?

regards,
Sandy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browser Back button | Struts bridge