From tomcat-user-return-97337-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Fri Apr 02 20:34:33 2004 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 68600 invoked from network); 2 Apr 2004 20:34:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 20:34:33 -0000 Received: (qmail 48774 invoked by uid 500); 2 Apr 2004 20:33:54 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 48747 invoked by uid 500); 2 Apr 2004 20:33:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 48708 invoked from network); 2 Apr 2004 20:33:53 -0000 Received: from unknown (HELO admin.taylor.com) (216.194.86.24) by daedalus.apache.org with SMTP; 2 Apr 2004 20:33:53 -0000 Received: from cayenne (054.216-123-203-0.interbaun.com [216.123.203.54]) by admin.taylor.com (8.11.6/8.11.6) with ESMTP id i32KXws12593 for ; Fri, 2 Apr 2004 13:33:58 -0700 From: "Chris" To: "'Tomcat Users List'" Subject: RE: problem with url - extra / appended before action Date: Fri, 2 Apr 2004 13:33:58 -0700 Keywords: Tomcat User Message-ID: <004501c418f1$d3983890$540aa8c0@cayenne> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <000801c418f0$2ebbe520$7202a8c0@stbedm.silvacom.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It does. Thanks Yan! What should I specify as my defaultHost in the Engine element? And the = name in the Host element? should I make defaultHost and name the actual url of the application? = ie www.myApp.com? What exactly happens when you do this? Does tomcat look in your hosts = file to see where the domain name is mapped? The documentation is a little = bit unclear for me. c. -----Original Message----- From: Yansheng Lin [mailto:yansheng.lin@silvacom.com]=20 Sent: Friday, April 02, 2004 1:22 PM To: 'Tomcat Users List' Subject: RE: problem with url - extra / appended before action ok, whatever you specify in your path is the context path. if you don't want to have the context been part of your request URL(i.e., www.mycompany.com/action.do instead of www.mycompany.com/myapp/action.do), then you can specify the path=3D"". But if your server is serving more that one webapps, the implication of = this is that all other requests that are not assigned to other contexts will be processed using this "default" context. =20 So if you only run one web application, there is nothing to worry about. = If you are running multiple web applications, then this is a good place to = catch those unassigned requests. =20 Hope this helps:). -Yan -----Original Message----- From: Chris [mailto:chuisman@taylor.com]=20 Sent: Friday, April 02, 2004 1:03 PM To: 'Tomcat Users List' Subject: RE: problem with url - extra / appended before action Actually Yan, that might be something that I want since I am only = serving out one web application and I want it to be mapped to the domain www.myapp.com=20 Is that what specifying c. -----Original Message----- From: Yansheng Lin [mailto:yansheng.lin@silvacom.com]=20 Sent: Friday, April 02, 2004 12:51 PM To: 'Tomcat Users List' Subject: RE: problem with url - extra / appended before action I am not sure about . I think if you try , the = container will append a / to the path, i.e., /myApp/***.do. But if you use , then that's the default webapp path, which is not something you want. But the other thread is a good starting point, take a look at = the request header too. =20 -Yan -----Original Message----- From: Chris [mailto:chuisman@taylor.com]=20 Sent: Friday, April 02, 2004 10:58 AM To: 'Tomcat Users List' Subject: RE: problem with url - extra / appended before action Yan, Thanks for the reply. =20 The context for my application is as follows (well the engine element = and onwards): This is not the way it is set up on my windows development box. But everything does work in windows using eclipse and sysdeo tomcat so I = don't believe it would have anything to do with my action mappings. I believe = it must be a tomcat configuration thing. c. -----Original Message----- From: Yansheng Lin [mailto:yansheng.lin@silvacom.com]=20 Sent: Friday, April 02, 2004 10:41 AM To: 'Tomcat Users List' Subject: RE: problem with url - extra / appended before action it's hard to say what's causing the problem exactly without knowing your context and your action-mappings. maybe in your action mapping, you have one = extra / in front. and tomcat would add that to the requestURL? -Yan -----Original Message----- From: Chris [mailto:chuisman@taylor.com]=20 Sent: Friday, April 02, 2004 9:56 AM To: tomcat-user@jakarta.apache.org Subject: problem with url - extra / appended before action Hello, =20 I have an application that uses frames. The problem that I am = experiencing is that when I go to a page that loads a new frameset all of my links = and buttons work correctly - that is they produce the correct url: www.companyname.com/action.do?parameter1=3Dblah . Now when I click one = of these links it populates a new page in the frameset, but the links are = all messed up. They all include an extra "/" before the action name: www.companyname.com//action.do?parameter=3Dblah . This extra = "/" is also found in the element for these pages. =20 This problem only occurs when I deploy the application (tomcat = standalone no apache involved) onto a linux box. The problem does not occur when I = test things on my windows box using eclipse and the tomcat sysdeo plugin. =20 Any idea what is going on here? =20 =20 Thanks, =20 c. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org