Well. If I say

document.forms[0].action="/registration/deleteRegistration.do";

it doesn't recognize as "registration" is the context root of my app and the
url was resolved as

http://localhost:9080/deleteRegistration.do

That is why it was giving me webGroup not found error. But when I set it to

document.forms[0].action="/registration/deleteRegistration.do";

it resolves to http://localhost:9080/registration/deleteRegistration.do

and works..I thought the same as you did too, but I guess you need to give
the relative path from context root.

Gnan


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 12:44 PM
To: [EMAIL PROTECTED]
Subject: RE: FW: R: Detecting the previous JSP


You shouldn't need to put the full path in, just setting the action to
"deleteRegistration.do" should be sufficient (assuming it's a root path,
meaning not something like "/my/app/deleteRegistration".  Not sure why it
wouldn't work, looking at my own code that's what I have (i.e., NOT the full
path)

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Thu, September 30, 2004 11:42 am, Shabada, Gnaneshwer said:
> 
> 
> 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]
> 
> 


======================================================================== 
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]

Reply via email to