Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes Token Interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Token Interceptor" Watch "Token Interceptor" New topic

Token Interceptor

Ahmad Khan

Joined: Mar 27, 2004
Posts: 7

I have checked all the answers to this question on this forum but none resolve my issue.

I need to stop the user from resubmitting the form. So naturally turned to Token interceptor

I get the below warning and the page is redirected to global results for invalid.token:

Here is my struts.xml config:

My JSP page snippest ( I have tried with out name attribute, using token, struts.token etc as name value but same issue).

Any hints on what is missing?


Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

Any one please....any suggestions, links....thanks

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

Hi Aryan,

try this code
Ahmad Khan

Joined: Mar 27, 2004
Posts: 7
Thanks Debraj....Still the same result....

What is missing?
Don't get me started about those stupid light bulbs.
subject: Token Interceptor