If all your links and actions have the same problem (the paths can be 
translated following the same rule), then the easiest fix I can think of is to 
either use Apache mod_rewrite, or if you are using a bare Tomcat, a redirect 
Servlet.

Erik


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Aug 23, 2005 5:54 PM
To: Struts Users Mailing List <user@struts.apache.org>
Subject: A forward problem

Hi,


Frantically trying to get a client demo working for the morning and I
feel like I ought to be able to work this out but I just can't.

I've got a demo system (not) running on a URL on tomcat 5.5/Java 1.5
with a file structure like
myserver/mydomain_com/mydomain.com/ so until I get the domain stuff
sorted out I can access via a url like 
http://www.myhost.com/mydomain.com/mydomain_com/login.do

My login page works much like the struts mailreader application � I have
an action path to <action path="/SubmitLogon" and the html form action
is <html:form action="SubmitLogon>

The browser gets sent this with an action path to
/mydomain_com/SubmitLogon.do i.e. back up one directory on the file
structure.    So what happens when the submit event fires is that it goes to
http://www.myhost.com/smydomain.com/SubmitLogon.do
Thus giving me a 404 error.

Is there anything quick and easy that can be done here to prevent this.
 I thought I could maybe set the <action path="/SubmitLogon" without the
/ (<action path="SubmitLogon" > but this errors with an "action path
missing /" error message. 

Thanks in advance,

Chum


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



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

Reply via email to