File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Question on Synchronizer token
Joined: Jan 15, 2002
Aug 03, 2006 16:39:00
I am using a DispatchAction in my application. I would also like to use the saveToken() isTokenValid() functionality provided by
After a saveToken() call, the resulting page that is displayed has the token of the form <input type="hidden" name="org...TOKEN" value="@$@$@45#$%"/>
When the form is submitted, the action that checks for isTokenValid(request) fails. Why would this occur?
Never be satisfied with anything less than the best and you will surely pass the test...
Joined: Jul 15, 2006
Aug 04, 2006 02:29:00
Please try to print the session attribute stored against org.apache.struts.Globals.TRANSACTION_TOKEN_KEY and see if it matches with the one in the html source.
I agree. Here's the link:
subject: Question on Synchronizer token
defect in struts token mechanism to handle multiple submit
Preventing multiple posts...with popup windows in the mix
Double submit problem
How do I use tokens to prevent user from multiple submission
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014