Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 85320 invoked from network); 11 Apr 2003 18:15:31 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Apr 2003 18:15:31 -0000 Received: (qmail 14628 invoked by uid 97); 11 Apr 2003 18:17:28 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 14621 invoked from network); 11 Apr 2003 18:17:27 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Apr 2003 18:17:27 -0000 Received: (qmail 85099 invoked by uid 500); 11 Apr 2003 18:15:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 85077 invoked from network); 11 Apr 2003 18:15:26 -0000 Received: from web41504.mail.yahoo.com (66.218.93.87) by daedalus.apache.org with SMTP; 11 Apr 2003 18:15:26 -0000 Message-ID: <20030411181530.48018.qmail@web41504.mail.yahoo.com> Received: from [12.236.60.198] by web41504.mail.yahoo.com via HTTP; Fri, 11 Apr 2003 11:15:30 PDT Date: Fri, 11 Apr 2003 11:15:30 -0700 (PDT) From: Mohan Kishore Subject: Re: [beanutils] Uppercased PropertiyDescriptor To: Jakarta Commons Developers List In-Reply-To: <20030411175524.70775.qmail@web21201.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > digester.addBeanPropertySetter("OrderList/Order/UserID","UserID"); Assuming your Order class has a method called setUserID(String s), the above line should be replaced by: digester.addBeanPropertySetter("OrderList/Order/UserID", "userID"); The algorithm is: if you have a setter method setXyzAbc(String s) in your class, you can 1) Have the xml element named xyzAbc and then use digester.addBeanPropertySetter("PathTo/MyClass/xyzAbc"); OR 2) Have the xml element named anything (say, MnoPqr) and then use digester.addBeanPropertySetter("PathTo/MyClass/MnoPqr","xyzAbc"); --- Sandra Mema wrote: > Well, actually I am > using:digester.addObjectCreate("OrderList",com.benelog.upload.containers.OrderList.class);digester.addObjectCreate( > "OrderList/Order",Order.class); > digester.addBeanPropertySetter("OrderList/Order/ID_Definition");digester.addBeanPropertySetter("OrderList/Order/UserID","UserID");That > is what does not work. Looking the code PropertyUtil,The "lowercased" > PropertyDescriptors return by getPropertyDescriptor (setName ---> name) seem > not to be take into account in Digester for the case of a "uppercased" tag > ....Probably the bug, if I am right, should be mended in Digester.do not > know! > > > --------------------------------- > Gesendet von http://mail.yahoo.de. > Privatkredit der DiBA: G�nstige 7,5% Zinsen. Die Alternative zum Dispo und > genauso flexibel! __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org