File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts2s token-session interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2s token-session interceptor " Watch "struts2s token-session interceptor " New topic

struts2s token-session interceptor

Che Frenz

Joined: Dec 15, 2008
Posts: 14

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">${}</param>
<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>

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?
I agree. Here's the link:
subject: struts2s token-session interceptor
It's not a secret anymore!