Never mind.. I think I am really being impatient..:)
I found it, its the path to the action in the JS function. Had to set it to full path..it works now Thanks anyways -----Original Message----- From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 11:34 AM To: 'Struts Users Mailing List' Subject: RE: FW: R: Detecting the previous JSP Dohh!! that was silly of me :) Thanks Frank. Nice eye. I got rid of that JS problem now but it still wouldn't recognize my action on submit. I get the following error on my console. [9/30/04 11:27:48:550 EDT] 3324009f OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /deleteRegistration.do has not been defined I tried changing it to "/deleteRegistration.do" but no effect. I have it configured in my struts-config as <action path="/deleteRegistration" type="org.acaosa.registration.web.DeleteRegistrationAction" name="deleteForm" scope="request"> <forward name="success" path="/WEB-INF/view/searchResults.jsp"> </forward> </action> Not sure why it doesn't find it. Appreciate your help. Thanks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 11:21 AM To: [EMAIL PROTECTED] Subject: RE: FW: R: Detecting the previous JSP Found the problem! Note that you have a submit button with the NAME "submit"... This is confusing the call to the submit() method in your JS function. Change the name of the button to submit1 or something and it'll work. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com > <SCRIPT language="Javascript"> > function callDelete() > { > alert("Let's delete"); > document.forms[0].action="/deleteRegistration"; > alert("Let's delete again"); > document.forms[0].submit(); > --------------------------------------------------------> ERROR RIGHT HERE > } > > > > </SCRIPT> > ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]