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

Query on Token Interceptor

 
Aravind Sivaramakrishnan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Iam a beginner in struts,studying features
I tried to implement Token Interceptor to prevent double submission,

I search internet but didnt find examples to do that in Struts2

I tried below code



in action tag of struts.xml

When i click the button first time itself it shows error.jsp

I havent made any changes other than struts.xml to implement Token interceptor

Please correct if iam wrong

Thanks in advance,
Arvin




 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not enough information :) Did you use the token tag in the form?
 
Aravind Sivaramakrishnan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply,
I did not use token tag in form,
Could you please give a short example for using token interceptor,
Arvin
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add the token tag, otherwise there's no token submitted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic