Thanks Jim, Yes, we found it to be an oddity in IE6 but mostly an error on our part. The html:submit onchange method was actually submitting the form (as any other control does). Doing this is wrong to begin with, and it turns out that Mozilla and IE handle it differently.
Now the page contains a default value of "submit" in the hidden field that onchange updates. That way submit does not have to call any js, and the action is still able to determine what to do. Thanks again. Ivan -----Original Message----- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 3:02 PM To: Struts Users Mailing List Subject: RE: Strange double-submissions > -----Original Message----- > From: Ivan Vasquez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 07, 2004 11:31 AM > To: [EMAIL PROTECTED] > Subject: Strange double-submissions > > > Hi, > > We have a form whose last two controls are an html:select and a submit > button. The form posts to an Action to insert records into a database. > Changing the select control causes a page refresh (posting to the same > Action) in order to display other options. > > We notice that, if the user submits the form immediately > after changing > the select control (say, in less than 1sec), two records (instead of > one) are inserted into the database. The problem appears depending on > how fast the user hits the submit button after the form refreshes, if > you submit 5secs after refresh, there's no problem. > > The code has been checked and there is no possibility for an > html:select > onchange to cause a database insert. Even though both trigger the same > Action, they are well differentiated. > > To make things more confusing, even though it is a > server-side problem, > we can reproduce it only using IE6.0! Besides the js for > submitting the > form onchange, there's no client-side code. > > Any clues? Just the big one you provided, IE 6. I would put some debugging code of some sort in your JS and see if IE6 is calling it even when it's not supposed to. I've also experienced some other oddities with IE 6 that don't happen elsewhere. > > Thanks in advance. > Ivan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]