• Post Reply Bookmark Topic Watch Topic
  • New Topic

Browser Back button | Struts bridge  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
scope="session" validate="false"

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

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

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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!