Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 40803 invoked from network); 2 Oct 2000 13:25:10 -0000 Received: from smtp.bvdep.com (HELO smtp.bvd) (193.194.158.46) by locus.apache.org with SMTP; 2 Oct 2000 13:25:10 -0000 Received: from SMTP ([172.28.2.46]) by smtp.bvd with Microsoft SMTPSVC(5.5.1877.197.19); Mon, 2 Oct 2000 15:25:04 +0200 Received: from mail.bvdep.com ([193.194.158.8]) by 193.194.158.46 (Norton AntiVirus for Internet Email Gateways 1.0) ; Mon, 02 Oct 2000 13:25:04 0000 (GMT) Received: by MAIL with Internet Mail Service (5.5.2650.21) id ; Mon, 2 Oct 2000 15:25:03 +0200 Message-ID: <2F7BD08CBEC9D311ADA9009027B0FC9C56DB26@MAIL> From: "Vanlerberghe, Luc" To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Problems with jsp:setProperty & introspection Date: Mon, 2 Oct 2000 15:25:01 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N When you define setCategoryNo and/or getCategoryNo, the property name is "categoryNo" (first letter lowercase !), like a normal member variable would be called if you follow the java coding conventions. The parameters you pass to your jsp-page need to be in the proper case as well, that's why the didn't work either... Luc Vanlerberghe > -----Original Message----- > From: Richard Wooding [mailto:richard@camara.co.za] > Sent: Monday, October 02, 2000 3:04 PM > To: tomcat-user@jakarta.apache.org > Subject: Problems with jsp:setProperty & introspection > > > Hi, > > I am having trouble with jsp:setProperty > > I have a bean CategoryBean which has the property CategoryNo > the bean has a setCategoryNo and a getCategoryNo and it adheres to the > JavaBean spec. > > When I use the following code in jsp: > > scope="request"> > > > > it fails to set any of the parameters I pass to it: > > scope="request"> > > > > it generates the following exception: > > Error: 500 > Location:/fedhasa/category.jsp > Internal Servlet Error: > > org.apache.jasper.JasperException: Cannot find any > information on property > 'CategoryNo' in a bean of type 'za.co.camara.fedhasa.CategoryBean' > at > org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(J > spRuntimeLibra > ry.java:211) > at > _0002fcategory_0002ejspcategory_jsp_8._jspService(_0002fcatego > ry_0002ejspcat > egory_jsp_8.java:163) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > ......... etc. > > This failure to successfully introspect properties is > happening with all my > beans. > What could be causing this??? > > Richard Wooding - Developer - Camara Consulting > e-mail: richard@camara.co.za icq: 7082626 msn: richard@camara.co.za > > 139 Hatfield Str, Gardens, Cape Town, 8001 Tel (Work): +27 > (21) 4652138 Tel > (Home): +27 (21) 4652544 >