This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Token Interceptor" Watch "Token Interceptor" New topic
Author

Token Interceptor

Ahmad Khan
Greenhorn

Joined: Mar 27, 2004
Posts: 7
Hi,

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?

Thanks


OCP, SCJP, SCWCD, MCP
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

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


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

Hi Aryan,

try this code
Ahmad Khan
Greenhorn

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




What is missing?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Token Interceptor
 
Similar Threads
http 404 error in uploading the file
Need help on understanding ww:token
values are not populated in browser
Error DefaultActionInvocation
from struts 2.0. to 2.1 - tokenSession