From users-return-138410-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Jan 10 21:56:49 2006 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 50832 invoked from network); 10 Jan 2006 21:56:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jan 2006 21:56:49 -0000 Received: (qmail 61019 invoked by uid 500); 10 Jan 2006 21:56:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 61002 invoked by uid 500); 10 Jan 2006 21:56:34 -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 60991 invoked by uid 99); 10 Jan 2006 21:56:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 13:56:34 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.37.238] (HELO web54103.mail.yahoo.com) (206.190.37.238) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Jan 2006 13:56:32 -0800 Received: (qmail 94870 invoked by uid 60001); 10 Jan 2006 21:55:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yZgemu6dBOiKlfd4yJs9dV/tBz81ZFNWt1NCsYsHm0kASsY+DCRALcrExywNXEmIhQf/YjrMENiYJ7Tbg1Fz8w9LPv2EzMZXpG+f+CG7j97Xnt0lFHdIXyWweKZYZjWGt+LBgY4TqJ8TK0WHkttvYpXvJ2+RbgK4usEqjOdoCXs= ; Message-ID: <20060110215553.94868.qmail@web54103.mail.yahoo.com> Received: from [213.93.230.101] by web54103.mail.yahoo.com via HTTP; Tue, 10 Jan 2006 13:55:53 PST Date: Tue, 10 Jan 2006 13:55:53 -0800 (PST) From: marju jalloh Subject: problem calling request.getParameter("myparameter") in jsp To: Tomcat Users List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1528244664-1136930153=:93088" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1528244664-1136930153=:93088 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi everyone I `m writing a bean application to execute sql query.The query properties in the Bean works perfect.I have a jsp with textArea where the user can enter query.The query is the required parameter that the Bean should execute. snippet ...
<%! String query = request.getParameter("display") ; %> <% if(!query.equals("") || !query.equals(null)) { String selector = (query.substring(0,6)).trim(); out.write(selector); if(selector.equals("SELECT")){ out.write(myBean.getData()); }else if(selector.equals("INSERT")){ myBean.setData(query) ; }else if(selector.equals("DELETE")){ myBean.setDelete(query); } else out.write("nothing is entered"); } %> ... My problem is when the jsp page is requested for the first time I got this error: cannot find symbol variable request. I know I should have null for request.getParameter("display") at first access and that is caugt.If I submit the form then the content of the textarea should be request.getParameter("display") .That was what I was expecting. Can anyone help Thanks in advance --------------------------------- Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP. --0-1528244664-1136930153=:93088--