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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

