Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 2896 invoked from network); 2 Aug 2004 13:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Aug 2004 13:30:11 -0000 Received: (qmail 27430 invoked by uid 500); 2 Aug 2004 13:29:37 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 27372 invoked by uid 500); 2 Aug 2004 13:29:36 -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 27357 invoked by uid 99); 2 Aug 2004 13:29:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [63.244.250.133] (HELO warhawk.mpi.com) (63.244.250.133) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 02 Aug 2004 06:29:33 -0700 Received: from lightning.mpi.com (lightning [63.244.252.11]) by warhawk.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i72DTUep018670 for ; Mon, 2 Aug 2004 09:29:30 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by lightning.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i72DSs9e012389 for ; Mon, 2 Aug 2004 09:29:28 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Is it possible to modify request parameter? Date: Mon, 2 Aug 2004 09:29:29 -0400 Message-ID: <9C5166762F311146951505C6790A9CF801FC38D8@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is it possible to modify request parameter? Thread-Index: AcR4SUb+Ii+KdINLT6y6Lh1XHnKQqAASqZzQ From: "Shapira, Yoav" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N H= i, Yes. Use the HttpServletRequestWrapper, and modify the getParameter/getAttribute/getHeader/getQueryString methods as you need= . You will need a Filter to go along with this, mapped to /servlet2 in your example, which will intercept the request and wrap it with your wrapper. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Steve Cheng [mailto:stevecheng@schednet.com] >Sent: Monday, August 02, 2004 12:27 AM >To: Tomcat Users List >Subject: Is it possible to modify request parameter? > >Dear all, > >The question may be not a TC specific one. > >I am using RequestDispatcher to forward a request object from Servlet= 1 to >Servlet2 as followings. > >protected void doPost(HttpServletRequest request, HttpServletResponse= >response) throws ServletException, IOException { > >... > RequestDispatcher rd =3D context.getRequestDispatcher("/Servlet2")= ; > rd.forward(request, response); >... > >} > >Is it possible to add or modify the parameters of the request object?= > >Thanks, >steve > > > >---------------------------------------------------------------------= >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org