Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 36348 invoked from network); 14 Apr 2005 21:12:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2005 21:12:40 -0000 Received: (qmail 54654 invoked by uid 500); 14 Apr 2005 21:12:32 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 54592 invoked by uid 500); 14 Apr 2005 21:12:32 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 74979 invoked by uid 99); 14 Apr 2005 18:15:26 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5411D.DAF3F8D7" X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Subject: Digester mixing simple and complex properties Date: Thu, 14 Apr 2005 13:14:53 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Digester mixing simple and complex properties Thread-Index: AcVBHdrpsCXHG5hKRx21CI3SHmOlPw== From: To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5411D.DAF3F8D7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =20 I'm brand-spanking-new to the Digester. I'd like to use nested properties because some are quite long and cumbersome to specify as xml attributes. I'd also like to use complex properties. I can't figure out the rules, however. Suppose I have this: =20 foo name bar name =20 If my rules look like this: digester.addObjectCreate("foo", Foo.class); digester.addSetNestedProperties("foo"); digester.addObjectCreate("foo/bar", Bar.class); digester.addSetNext("foo/bar", "setBar"); digester.addSetNestedProperties("foo/bar"); I get "java.lang.NoSuchMethodException: Bean has no property named bar." If I comment out the addSetNestedProperties("foo") it's ok (foo, bar, and bar name get populated) except that foo's nested props are ignored. I've also tried addSetNestedProperties("foo", "bar", null) to no avail. Is it possible to mix properties like this? If so, how? =20 thanks =20 =20 =20 John Gregg Application Systems Engineer Wells Fargo Private Client Services Technology =20 ------_=_NextPart_001_01C5411D.DAF3F8D7--