Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 41387 invoked from network); 2 Nov 2006 11:57:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 11:57:24 -0000 Received: (qmail 91853 invoked by uid 500); 2 Nov 2006 11:57:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 91840 invoked by uid 500); 2 Nov 2006 11:57:23 -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 91829 invoked by uid 99); 2 Nov 2006 11:57:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 03:57:23 -0800 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 (herse.apache.org: domain of tremalnaik@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 03:57:09 -0800 Received: by nf-out-0910.google.com with SMTP id m18so1002678nfc for ; Thu, 02 Nov 2006 03:56:48 -0800 (PST) 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=aJqcksQsR602f53KkwHuXpckZHhOkVIaGHtlX79kjSpeAmUVCKReWA8X3Y/UHT9cPT6uGdwceI4kUmB+rdCkU1eB2TYYUi7VamtiUozk3/7dbWCvjMKh4IEWnMGg3DyVEP8pBOqjXaJ4bJRUJbIG9sb9d29zvUtrGJMScQNt0sU= Received: by 10.82.147.6 with SMTP id u6mr67187bud.1162468607395; Thu, 02 Nov 2006 03:56:47 -0800 (PST) Received: by 10.82.180.9 with HTTP; Thu, 2 Nov 2006 03:56:47 -0800 (PST) Message-ID: <5b889e570611020356s54310d3sa5b16be29cda25a4@mail.gmail.com> Date: Thu, 2 Nov 2006 11:56:47 +0000 From: "Tremal Naik" To: "Tomcat Users List" Subject: Re: Modifying the response In-Reply-To: <5b889e570611020311s6fc4109cydbc8e992f207a748@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5b889e570611020311s6fc4109cydbc8e992f207a748@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 2006/11/2, Tremal Naik : > I'd like to filter the response to strip the unnecessary query string > from the Location header. Should I use a Valve or a Filter or what? I noticed that I can change the header Location after the invoke() call in a Valve: getNext().invoke(request, response); String location = response.getHeader("Location"); if (location != null) { response.setHeader("Location", "https://cor319.whatever.com:8443/"); } I don't get an IllegalStateException as I expected. Why? Do you think this is a correct way to proceed? thanks -- TREMALNAIK --------------------------------------------------------------------- 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