I have a problem understanding how to use those....

I have jsp pages using <html:forms>
Ted's book says that "a hidden field is automatically added when the form sees that a tokens are being used"
but I fail to see how the forms sees that. In other wods, what do I have to put as attribute to get the behaviour?
I do not see anything in rendered html form that looks like the transaction token...


Then, in the action done on submit for those forms, I want to check for double submit and react.
So I have this:
saveToken(request);
if ( ! isTokenValid(request)) {
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("error.multiple-submit"));
saveErrors(request,errors);
resetToken(request);
return mapping.findForward("multi-submit");
} // end of if ()


This always takes me into the error branch... Is this a consequence of the first problem (not having tokens sent)?

Thanks for any hint or example.

--
Dominique de Waleffe Email: [EMAIL PROTECTED] [No HTML please]
Mission Critical, Drève Richelle 161 Bât N, B-1410 Waterloo, Belgium Phone: +32 2 757 10 15 Fax: +32 2 759 27 60
ICQ: 289-306-495




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



Reply via email to