Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 29379 invoked from network); 20 Jun 2003 15:08:38 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 20 Jun 2003 15:08:38 -0000 Received: (qmail 3832 invoked by uid 97); 20 Jun 2003 15:10:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 3824 invoked from network); 20 Jun 2003 15:10:58 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 20 Jun 2003 15:10:58 -0000 Received: (qmail 27991 invoked by uid 500); 20 Jun 2003 15:08:24 -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 27978 invoked from network); 20 Jun 2003 15:08:24 -0000 Received: from ihemail1.lucent.com (HELO ihemail1.firewall.lucent.com) (192.11.222.161) by daedalus.apache.org with SMTP; 20 Jun 2003 15:08:24 -0000 Received: from qdgex01.gdc.lucent.com (h135-252-34-206.lucent.com [135.252.34.206]) by ihemail1.firewall.lucent.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id h5KF8LP26463 for ; Fri, 20 Jun 2003 10:08:22 -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 K1CL8GA0; Fri, 20 Jun 2003 23:07:29 +0800 Message-ID: <01a401c3373d$ab09e130$8e20fc87@ci3015.qd.lucent.com> From: "Alan Tang" To: "Tomcat Users List" References: <00dc01c33733$cdfebf30$64b7fea9@name6msdjw95pe> Subject: Re: passing parameters to another JSP page Date: Fri, 20 Jun 2003 23:07:23 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 Stefan, Thanks so much for your response! It works. I spent almost a whole day trying to figure it out but failed! RGS, Alan Tang ----- Original Message ----- From: "Stefan Radzom" To: "'Tomcat Users List'" Sent: Friday, June 20, 2003 9:56 PM Subject: RE: passing parameters to another JSP page There is a little typo in your which screws up the rest of your jsp. For your include-action you use an empty-element tag (ending with "/>") that by definiton contains no child elements. Therefore, the params do not belong to the include and are never passed on to the included jsp. Use the corrected code and everything should work fine. Stefan > -----Original Message----- > From: Alan Tang [mailto:stang1@lucent.com] > Sent: Friday, June 20, 2003 12:03 PM > To: tomcat-user@jakarta.apache.org > Subject: passing parameters to another JSP page > > > Hi, > Any help would be highly appreciated! > I'm wondering why it's NOT working passing parameters to > another jsp page. > I'm using Tomcat 4.0 > Here is the sample jsp pages I used: > Called.html: > > > > > > > > > > Caller: > param1: <%= request.getParameter("param1") %> > param2: <%= request.getParameter("param2") %> > param3: <%= request.getParameter("param3") %> > > > > > Here is the JSP page being called: > > > > > Callee: > param1: <%= request.getAttribute("param1") %> > param2: <%= request.getParameter("param2") %> > param3: <%= request.getParameter("param3") %> > > > > If the caller is called with the URL: > > http://135.252.32.142/SIX_XML/scriptJsp/caller> .jsp?param1=a¶m2=b > > the expected output would be: > Callee: > param1: a > param2: value2 > param3: value3 > > 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 > 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! > ----- > Alan S. Tang > Lucent Technologies > stang1@lucent.com > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org