You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bradford M. Ayers" <ba...@gsmr.org> on 2003/12/16 17:36:13 UTC

url changing to localhost

I'm new to Struts, so excuse me if this seems like an obvious one.

What is the trick to prevent the URL from changing?  If I hit my machine (isunit81 which has a web server and the web app) from a remote machine by using this URL, http://isunit81/tablemaintenance and I login (by submitting a user/password form), the next page it takes me to has the URL with localhost:8080 instead of isunit81 (http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F92DD8686A61FD0AB)  On a remote machine, I get a 404 error because of localhost, it's trying to find the page on itself.  What am I doing wrong?



Brad Ayers
Senior Programmer Analyst
Granite State Management and Resources
bayers@gsmr.org
603-225-5867 ext. 308
603-224-2581  Fax number

CONFIDENTIALITY NOTICE

This e-mail message, including any attachments, 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 e-mail and destroy all copies of the original message.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: url changing to localhost

Posted by Martin Gainty <mg...@hotmail.com>.
Take a look at
%TOMCAT_HOME%/conf/server.xml (windows)
$TOMCAT_HOME\conf\server.xml (unix)

<!-- Define the top level container in our container hierarchy -->

<Engine name="Standalone" defaultHost="localhost" debug="0">

whatever defaultHost is pointing to is what Tomcat uses for default server

Regards,
Martin

"Live Free or Die" - Gen John Stark

----- Original Message ----- 
From: "Bradford M. Ayers" <ba...@gsmr.org>
To: <st...@jakarta.apache.org>
Sent: Tuesday, December 16, 2003 11:36 AM
Subject: url changing to localhost


I'm new to Struts, so excuse me if this seems like an obvious one.

What is the trick to prevent the URL from changing?  If I hit my machine
(isunit81 which has a web server and the web app) from a remote machine by
using this URL, http://isunit81/tablemaintenance and I login (by submitting
a user/password form), the next page it takes me to has the URL with
localhost:8080 instead of isunit81
(http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F
92DD8686A61FD0AB)  On a remote machine, I get a 404 error because of
localhost, it's trying to find the page on itself.  What am I doing wrong?



Brad Ayers
Senior Programmer Analyst
Granite State Management and Resources
bayers@gsmr.org
603-225-5867 ext. 308
603-224-2581  Fax number

CONFIDENTIALITY NOTICE

This e-mail message, including any attachments, 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 e-mail and destroy all copies of the original message.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org