users@glassfish.java.net

glassfish seems to be processing request 2x?

From: <glassfish_at_javadesktop.org>
Date: Fri, 04 Apr 2008 07:15:13 PST

Hey, I have a html form (not hosted on the glassfish server) which posts to my servlet (on glassfish) and it seems that when the form posts to the servlet, it is called 2x, and results in 2 rows being added to my database.

I'm 100% sure I am not pressing the submit button on the form multiple times. This also doesn't happen all the time, but I'd say 10% of the time, I can see duplicate rows in my database.

I added a log message to the servlet, and when it happens I can see it 2x in the server.log file at the exact same time... I have also noticed this a few times on my development machine with netbeans.

Any ideas whats wrong? I assume this isn't a glassfish bug, as I'm sure someone else would have noticed this kind of behaviour before....
[Message sent by forum member 'kingsob' (kingsob)]

http://forums.java.net/jive/thread.jspa?messageID=267744