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
Brian,
Try to define all your variables as local to the methods in the action
class. If you need to have instance variables be aware that they are shared
among all the threads accessing the action.
Hi there,
I have not yet had to develop an application that had to deal with
threading
http://www.mail-archive.com/struts-user@jakarta.apache.org/
From: Michael [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: archive of this list
Date: Fri, 25 Jan 2002 20:52:45 -0800
MIME-Version: 1.0
Received: from
Christian,
Would it be possible to have just 1 form with a type property and then
from the JSP's a hidden field that sets the type? Based on this type you
can control the proper validation. Having different classes with the same
form name could get messy.
From: Christian Bouessay [EMAIL
4 matches
Mail list logo