Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 42036 invoked from network); 20 Jun 2003 10:04:14 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 20 Jun 2003 10:04:14 -0000 Received: (qmail 23161 invoked by uid 97); 20 Jun 2003 10:06:46 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23154 invoked from network); 20 Jun 2003 10:06:46 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 20 Jun 2003 10:06:46 -0000 Received: (qmail 40589 invoked by uid 500); 20 Jun 2003 10:03:56 -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 40572 invoked from network); 20 Jun 2003 10:03:55 -0000 Received: from auemail1.lucent.com (HELO auemail1.firewall.lucent.com) (192.11.223.161) by daedalus.apache.org with SMTP; 20 Jun 2003 10:03:55 -0000 Received: from qdgex01.gdc.lucent.com (h135-252-34-206.lucent.com [135.252.34.206]) by auemail1.firewall.lucent.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id h5KA45614245 for ; Fri, 20 Jun 2003 05:04:05 -0500 (CDT) Received: from ci3015gjyang (135.252.32.142 [135.252.32.142]) by qdgex01.gdc.lucent.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id K1CL818R; Fri, 20 Jun 2003 18:03:14 +0800 Message-ID: <008301c33713$2a5f97c0$8e20fc87@ci3015.qd.lucent.com> From: "Alan Tang" To: Subject: passing parameters to another JSP page Date: Fri, 20 Jun 2003 18:03:10 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0080_01C33756.35B315F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0080_01C33756.35B315F0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi, Any help would be highly appreciated! I'm wondering why it's NOT working passing parameters to another jsp = page.=20 I'm using Tomcat 4.0 Here is the sample jsp pages I used: Called.html: =20 =20 Caller: param1: <%=3D request.getParameter("param1") %> param2: <%=3D request.getParameter("param2") %> param3: <%=3D request.getParameter("param3") %> =20 Here is the JSP page being called:=20 Callee: param1: <%=3D request.getAttribute("param1") %> param2: <%=3D request.getParameter("param2") %> param3: <%=3D request.getParameter("param3") %> If the caller is called with the URL:=20 = http://135.252.32.142/SIX_XML/scriptJsp/caller.jsp?param1=3Da¶m2=3Db the expected output would be:=20 Callee: param1: a param2: value2 param3: value3 =20 Caller: param1: a param2: b param3: null The issue is that I always get wrong result with Tomcat 4.0: Callee: param1: a param2: b param3: null Caller: param1: a param2: b param3: null=20 Could anybody tell me what's wrong here? Does Tomcat need a special configuration to support passing parameters to another JSP page, or I need to use a latter version of Tomcat? Thanks much! -----=20 Alan S. Tang=20 Lucent Technologies stang1@lucent.com=20 ------=_NextPart_000_0080_01C33756.35B315F0--