Hi

>> the point
is your JavaScript "filter to disable multiple Clicks" may not be as
fool proof as you think.


The same test performed on the Internal IP (http://<ip:port>/ABCD), and was 
observed that the single Post request was observed with single Insertion to DB 
... compared to 2 POST request via External IO ( http://ABCD.com )

So how does this prove that the JavaScript as stated below is not working .... 
:(



var no_clicks=0;
function isClicked(){
  if(no_clicks == 0 ){
        no_clicks++;
      document.xxx.action="abcd.jsp";
      document.xxx.submit();
  }else{
        return false;
  }
}



With regards
KArthik

-----Original Message-----
From: Ðavîd Låndïs [mailto:dlan...@gmail.com]
Sent: Wednesday, August 11, 2010 2:54 AM
To: Tomcat Users List
Subject: Re: 2 POST requests to underlying Server

3) As I have already said We have put a Java script filter to disable
  multiple Clicks for dual request from the Browser ( IE 7+ / FF 3+ )

I had a similar issue once due to jQuery. If you attach the same click
listener twice to the same button, it'll submit 2 POST's or GET's for
one mouse click (in the latest version of jQuery). There may be other
ways to accomplish that as well with other libraries, etc -- the point
is your JavaScript "filter to disable multiple Clicks" may not be as
fool proof as you think.

On Tue, Aug 10, 2010 at 12:29 PM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Karthik,
>
> On 8/10/2010 9:08 AM, Karthik Nanjangude wrote:
>> Problem exists ,Proof given
>
> No: Problem is observed, very little in the way of proof has been given.
>
> You've made assertions about the circumstances and observed results.
>
> You have actually provided no data at all. Instead, you've merely stated
> that you've read the logs and they prove something is wrong.
>
> Since apparently nobody believes that you are interpreting the logs
> correctly, why not simply post the logs themselves. You'll need to
> provide the following:
>
> 1. An httpd log file showing the incoming request(s) from the client/browser
>
> 2. A mod_jk log file showing the communication between httpd and Tomcat
>
> 3. A tcpdump log file, if you really wish to include it
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxhfnMACgkQ9CaO5/Lv0PAXKACfZMSU3dhcRaJYD66BSXsodw3Q
> jGEAoI/M+o22p2m76vk+jZb+B4VMeTvE
> =AHZ2
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

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


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

Reply via email to