Re: Help! Problem with "isTokenValid"

2004-10-12 Thread t t
Thank you for this excellent answer! It makes much sense to me. Tong --- Jason Lea <[EMAIL PROTECTED]> wrote: > Some forms don't need tokens > > Let me see... some places you use tokens are where > you want to stop an > accidental resubmission of a form. Maybe where you > are adding items to >

Re: Help! Problem with "isTokenValid"

2004-10-11 Thread Jason Lea
You need 2 actions. The first saves a token, then displays the form. The 2nd action is called when the form is submitted, and the code below looks ok. I assume you either don't have an action to populate the form (eg the user opens the .jsp form directly), or the action does not save the toke

Help! Problem with "isTokenValid"

2004-10-11 Thread t t
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!