Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 5598 invoked from network); 11 Jan 2003 13:31:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jan 2003 13:31:46 -0000 Received: (qmail 19902 invoked by uid 97); 11 Jan 2003 13:32:47 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19886 invoked by uid 97); 11 Jan 2003 13:32:46 -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 19874 invoked by uid 98); 11 Jan 2003 13:32:46 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E201CA6.1040509@joedog.org> Date: Sat, 11 Jan 2003 08:31:18 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: filters - need to ADD a header to incoming request References: <000801c2b919$270fe7f0$5b0916ac@esca.com> <3E1F82BF.6010201@joedog.org> <000401c2b920$9be45640$5b0916ac@esca.com> In-Reply-To: <000401c2b920$9be45640$5b0916ac@esca.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If you need to set the Header on response you can have your servlet/JSP do that. Otherwise, your filter can call response.setHeader(...). -Tim David Orriss Jr wrote: > Another Q.. > > Wouldn't I *also* have to extend getHeaderNames so that the new request header > would *know* about > the name *as well as* the value to be returned? > > Thanks again Tim. > > On Friday, January 10, 2003 6:34 PM, > Tim Funk wrote: > > >>Create a class which extends HttpServletRequestWrapper and extend >>getHeader and getHeaders >> >>In your filter, you would create your subclassed >>HttpServletRequestWrapper and then call: >>doFilter(yourWrappedHttpServletRequestWrapper , response) >> >>HttpServletRequestWrapper is part of the Servlet 2.3 API. See the >>javadocs on how to use it. >> > > > > -- > David Orriss Jr. > dave@davenet.net > http://www.davenet.net > Want ICQ/AIM/MSN ID's? Just Ask... > Linux - Chicken Soup for the Unix Soul > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: