aspose file tools*
The moose likes Struts and the fly likes Query on Token Interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Query on Token Interceptor" Watch "Query on Token Interceptor" New topic
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

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

Just add the token tag, otherwise there's no token submitted.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query on Token Interceptor
 
Similar Threads
Problem with token
Token Interceptor
token Session Interceptor + Struts 2
ModelDriver Interceptor + not getting my object
Null Pointer Exception After calling Execute And Wait Interceptor