"Faisal Shoukat" <[EMAIL PROTECTED]> wrote on 01/06/2006 11:46:51 AM:
> Hi, > > > > I have a problem where for some unknown reason my form is submitted > twice. I have a action class which calls a delegate which calls a DAO > class. > > > > When I press submit the form is submitted. My code in the JSP is as > follows: > > > > Javascript function called when submitting form: > > > > function setAction(action) > > { > > > > document.pendingRecordForm.action.value= action; > > document.pendingRecordForm.submit(); > > } > Wild guess: Try adding "return false;" to the end of your setAction(action) and see what happens..? Geeta