Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TokenSession Interceptor

 
Yiorgos Panayiotakis
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic