Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 62552 invoked from network); 10 Jul 2006 16:25:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jul 2006 16:25:05 -0000 Received: (qmail 65896 invoked by uid 500); 10 Jul 2006 16:24:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65748 invoked by uid 500); 10 Jul 2006 16:24:51 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 65736 invoked by uid 99); 10 Jul 2006 16:24:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 09:24:51 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hassan.schroeder@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 09:24:42 -0700 Received: by ug-out-1314.google.com with SMTP id q2so415329uge for ; Mon, 10 Jul 2006 09:24:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Az4LSeZ7OZvRp/I3Y3zz6LKHlAPchD9lPYNNQ6OyGz7dYpL0A52nyNiGlAU3W3zciTjHgXjFZsccK8HjgT/5kHC5+RQWTgs6oxfxsBOjTQOrSD+3/naBYabuZZ3uJUYxDoYtH7bqzaMMWNIR9+VJxwk7KUYzSQmLyxJ3g/nnwWo= Received: by 10.67.29.12 with SMTP id g12mr80188ugj; Mon, 10 Jul 2006 09:24:15 -0700 (PDT) Received: by 10.66.254.4 with HTTP; Mon, 10 Jul 2006 09:24:15 -0700 (PDT) Message-ID: <4eedb92a0607100924l6fdbff16q10aff5a8e3e835cf@mail.gmail.com> Date: Mon, 10 Jul 2006 09:24:15 -0700 From: "Hassan Schroeder" To: "Tomcat Users List" Subject: Re: URL Redirection in tomcat In-Reply-To: <5101383.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5101383.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/29/06, santhoshs wrote: > Am using Tomcat 5.0 . My requirement is to redirect the URL > "http://username.mysite.com" to > "http://username.site.com/application.do?login_name=username". > My Question is whether should i use apache for this redirection or can i > achieve this using tomcat itself ? If so what should I do to achieve this ? You certainly don't need apache, but you do need to read the servlet spec about welcome files and forwarding. :-) Also, if the originating URL is the root of your site, where is the value "username" coming from?? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org