A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
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
Double submit problem
How do I use tokens to prevent user from multiple submission
Preventing multiple posts...with popup windows in the mix
defect in struts token mechanism to handle multiple submit
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014