wood burning stoves 2.0*
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
Author

TokenSession Interceptor

Yiorgos Panayiotakis
Greenhorn

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.



Thanks.
Marty Diamond
Greenhorn

Joined: Nov 06, 2009
Posts: 2
I have the same problem. I found some information in
http://www.ericmmartin.com/struts-2-parametersinterceptor/ and http://article.gmane.org/gmane.comp.jakarta.struts.devel/67123
but it didn't help. I have added
<interceptor-ref name="params">
<param name="excludeParams">
dojo\..*, ^struts\..*
</param>
</interceptor-ref>
to all of my stacks but I still get the errors.
Yiorgos Panayiotakis
Greenhorn

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: http://aspose.com/file-tools
 
subject: TokenSession Interceptor
 
Similar Threads
Need help on understanding ww:token
Token Interceptor
Struts 2 error - Unable to load configuration
tokenSession and execAndWait interceptor together
Struts 2 token interceptor , struts.token is null