Steven,

That's hard-coded behavior in RequestProcessor :-|

It doesn't look to me like it'd be a tremendously difficult thing to fix. Basically, what happens is RequestProcessor.processForwardConfig sees the leading "/" on your action and prepends the context root. Sounds like we should only be doing that if the context root is a non-empty string.

You could hack it for now - until it's fixed. Looks like line 381 of RequestProcessor.java is the culprit. You're welcome to submit a bug and accompany it with a patch :-) Drop me an FYI if you do and I'll try to test it and apply it this weekend.

Happy Thanksgiving!

Eddie Bush

----- Original Message ----- From: "Steven Leija" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 11:45 PM
Subject: Virtual Host & Struts Action Form



Hello All,

I'm currenting running a virtual host in tomcat and apache and running into an issue where my form is being rendered with two slashes followed by my action path. eg. action="//myAction.do" I'm assuming this is due to my tomcat context path being "/", so the slash is being added onto this. Is there a way to prevent this from happening?

Thanks for any help!

Steven




--------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-0, 11/23/2004 Tested on: 11/25/2004 12:06:37 AM avast! - copyright (c) 2000-2004 ALWIL Software. http://www.avast.com




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to