| Author |
Query on Token Interceptor
|
Aravind Sivaramakrishnan
Greenhorn
Joined: Nov 22, 2007
Posts: 7
|
|
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
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
Not enough information :) Did you use the token tag in the form?
|
 |
Aravind Sivaramakrishnan
Greenhorn
Joined: Nov 22, 2007
Posts: 7
|
|
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
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
Just add the token tag, otherwise there's no token submitted.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Query on Token Interceptor
|
|
|