It prevents an erroneous double submit. If your users use the back button or click submit twice the isTokenValid() will return false since the token was reset on the original call.
>In the struts-example application in (SaveRegistrationAction.java:190, >:161) >the author calls the method saveToken(request) and then isTokenValid() and >resetToken(). What does this use of transactional control tokens provide? > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>