I have an application inside the ROOT folder in tomcat 3.2.3. Whenever the servlet is getting invoked from a JSP or an html page which is inside a folder.. the doPost is getting invoked twice. Any help will be greatly appreciated
This is usually caused by an HTML problem. If you have onSubmit calling a function and this function calls form.submit() it can cause the data to be submitted twice. I believe this may only be a problem in IE
HI David, Thanks for the reply.. but i am not calling any onSubmit. The fn that is being invoked is onKeyPress. How it fns is this fn checks the event of a keypress and when return is pressed.. the form is submitted.
What does the web.xml entry for this application look like? What URL does the form submission use? Firefox is ideal for debugging all sorts of questions involving HTML and Javascript - love the built in functions and the add-ons are great too. Bill [ August 20, 2005: Message edited by: William Brogden ]