-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hassan,

On 5/20/2010 10:31 AM, Hassan Schroeder wrote:
> On Thu, May 20, 2010 at 7:01 AM, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
> 
>>>>> UserVisitor is  clicking the image based href  MULTIPLE TIMES
> 
>> I'd love to hear some clever solutions to this problem.
> 
> Create a unique value in a hidden field in each displayed form.
> 
> Have a servlet filter save the value of that field; if a subsequent request
> contains that same value, just drop the request.

We do use Struts' version of this technique (they call them "tokens")
but the problem is that the second request is the response the user
sees: to the user, the second request has "failed" while the first
request may still be processing, or have correctly completed and the
response was never received.

It's better to avoid the second request in the first place, and the only
way to do that is to convince the client not to send it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkv1phkACgkQ9CaO5/Lv0PCquwCgn4ixN7TVpkkQ1PWxjxdzGxGU
7+AAoJP8/bLhNKnzm7bFLKE6iUYHyEN9
=kMue
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to