File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2s token-session interceptor " Watch "struts2s token-session interceptor " New topic
Author

struts2s token-session interceptor

Che Frenz
Greenhorn

Joined: Dec 15, 2008
Posts: 14
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2s token-session interceptor