• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TokenSession Interceptor

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic