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

TokenSession Interceptor

Yiorgos Panayiotakis

Joined: Jul 17, 2009
Posts: 14
I am using the tokenSession interceptor for Struts2(2.0.14) using the token tag (s:token) in my forms in order to restrict double submits of a page. Though
the interceptor seems to work (because I do no get an invalid.token error), I am getting the following error :

which I suspect it has to do with the fact that I use the type = RedirectAction in my action results (struts.xml). Do I need to configure something in order to work?
How can I eliminate the errors above ? Below is my struts.xml, the action code does nothing just returns success for the moment.

Marty Diamond

Joined: Nov 06, 2009
Posts: 2
I have the same problem. I found some information in and
but it didn't help. I have added
<interceptor-ref name="params">
<param name="excludeParams">
dojo\..*, ^struts\..*
to all of my stacks but I still get the errors.
Yiorgos Panayiotakis

Joined: Jul 17, 2009
Posts: 14
Thank you very much Marty for the info.

I 've seen the first link before and used that info to supress the errors, with a statement like the one below:

but I'm not sure if this is the correct way to go, since I cannot be sure that this"intervention" does not affect the token after the redirection.
I agree. Here's the link:
subject: TokenSession Interceptor
It's not a secret anymore!