Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2s token-session interceptor

 
Che Frenz
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm trying to use struts 2's token interceptor. I have <s:token/> in my jsp under my form tag.
My action configuration includes:
<action name="createFacility" method="input" class="CreateFacilityAction">
<interceptor-ref name="token-session"/>
<result type="redirect-action">
<param name="actionName">selectFacility</param>
<param name="namespace">/facility/view</param>
<param name="id">${facility.id}</param>
</result>
<result name="invalid.token">web.error</result>
<result name="input">web.facility.createFacility</result>
<result name="error">web.error</result>
<result name="cancel">web.home</result>
</action>

My problem is that I don't get a successful attempt. When I hit the 'Create' button, I'm immediately forwarded as if I've double submitted.

Any suggestions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic