Hi, all,

I have a Form in my application, when user click the
"submit" button, an Action class will be called. There
is some code like this in these class. The first time
the user click the button, the error
"error.transaction.token" was shown while the second
time it's ok. Why?
Thanks in advance!
Tong

if (!isTokenValid(request)) {
            errors.add(
                ActionMessages.GLOBAL_MESSAGE,
                new
ActionMessage("error.transaction.token"));
        }
          |
          |
          |

if (!errors.isEmpty()) {
            this.saveErrors(request, errors);
            this.saveToken(request);
            return (mapping.getInputForward());
        }


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to