Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 32995 invoked from network); 29 Sep 2004 08:01:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Sep 2004 08:01:45 -0000 Received: (qmail 9467 invoked by uid 500); 29 Sep 2004 08:00:43 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 9444 invoked by uid 500); 29 Sep 2004 08:00:42 -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 9429 invoked by uid 99); 29 Sep 2004 08:00:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.193.202.245] (HELO waseda.lunarpages.com) (216.193.202.245) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 29 Sep 2004 01:00:01 -0700 Received: from 000d88870c4e.click-network.com ([131.191.32.112] helo=[127.0.0.1]) by waseda.lunarpages.com with esmtpa (Exim 4.42) id 1CCZNR-0008VS-Tt for tomcat-user@jakarta.apache.org; Wed, 29 Sep 2004 00:59:54 -0700 Message-ID: <415A6B79.4040901@michaelmcgrady.com> Date: Wed, 29 Sep 2004 00:59:53 -0700 From: Michael McGrady User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Servlet mapping problem References: <8f1005a104092900416a0cce8e@mail.gmail.com> In-Reply-To: <8f1005a104092900416a0cce8e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - waseda.lunarpages.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - michaelmcgrady.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Anto Paul wrote: >Hi all, > I am writing an application which have to serve content based on the >hostname it is requested. Different hosts will be set to same ROOT >directory. There wont be any content at the ROOT. Everything will be >on subdirectories. I wrote a servlet with mapping as / . But when it >is forwarded to subdirectory it is coming to same servlet and >executing in a loop. This is an example of what I need. > >Directory structure. Host name >ROOT/sites/one.com - one.com >ROOT/sites/two.com two.com >ROOT/sites/three.com three.com > >A request to one.com should go to /sites/one.com . >A request to two.com should go to /sites/two.com . > >How to make it. > >Thanks in advance > >Anto Paul > > > > Hello, Anto, I don't have enough information to tell what your problem is. Are you using ActionForwards to go to these areas? What "servlet" with a mapping as / are you talking about? Remember this is a Struts list. If you have everything mapped to your servlet in your web.xml, then, of course, everything is going to go to your servlet. I suspect this is what you have done. Why do you have a servlet with a "mapping" as "/" ? Michael McGrady --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org