Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 848 invoked from network); 23 Sep 2003 22:56:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Sep 2003 22:56:33 -0000 Received: (qmail 9116 invoked by uid 500); 23 Sep 2003 22:56:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 9069 invoked by uid 500); 23 Sep 2003 22:56:14 -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 9055 invoked from network); 23 Sep 2003 22:56:13 -0000 Received: from unknown (HELO mr-mcfeeley.fgm.com) (216.1.16.101) by daedalus.apache.org with SMTP; 23 Sep 2003 22:56:13 -0000 Received: from phreaker.net (sd.fgm.com [207.158.2.130]) by mr-mcfeeley.fgm.com (8.11.6/8.11.2) with ESMTP id h8NMmVX19177 for ; Tue, 23 Sep 2003 18:48:31 -0400 Message-ID: <3F70CF7D.6010801@phreaker.net> Date: Tue, 23 Sep 2003 15:55:57 -0700 From: __matthewHawthorne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [betwixt] general confusion about BeanReader References: <3F6F5EB0.9020503@phreaker.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Not betwixt, just what's underneath: beanutils, collections, digester, and logging. I can't remember exactly where the jar came from... I think it may have been j2ee 1.4 beta 1 which was released a few months ago. robert burrell donkin wrote: > the new j2ee sdk includes betwixt? i suppose that it's nice to be wanted > but i'd have hoped that sun would have realized that betwixt is an alpha > for a reason... > > - robert > > On Monday, September 22, 2003, at 09:42 PM, __matthewHawthorne wrote: > >> I copied a test case directly from the betwixt source into my test class, >> and it failed. That's when I knew something strange was going on. >> >> It turns out that the problem was unrelated to betwixt. I had >> j2ee.jar from the latest j2ee sdk in my classpath, which includes its >> own digester, >> beanutils, and betwixt classes. I was trying to use the latest version, >> but the j2ee classes must have taken precedence. >> >> What a weird problem! Thanks for your help anyways. >> >> >> >> >> robert burrell donkin wrote: >> >>> On Thursday, September 18, 2003, at 11:47 PM, __matthewHawthorne wrote: >>> >>>> I've spent the entire day attempting to read a bean with betwixt... >>>> I've run out of ideas. >>>> >>>> For example, if my bean is named Person: >>>> >>>> class Person { >>>> String getName() >>>> setName(String) >>>> } >>>> >>>> I've tried: >>>> >>>> BeanReader.registerBeanClass(Person.class) >>>> BeanReader.registerBeanClass("Person", Person.class) >>>> >>>> But BeanReader.parse() still returns null. >>>> >>>> >>>> Here are some questions: >>>> >>>> 1) Can XML written from a BeanWriter be parsed by a BeanReader >>>> without the use of .betwixt files? Since I didn't change any of the >>>> configuration, I assumed that both could read and write easily, but >>>> this isn't happening. >>> >>> yes. betwixt should work in a reasonable manner without a .betwixt file. >>> >>>> 2) Is it necessary to register every bean before calling >>>> BeanReader.parse( >>>> )? In other words, if I have nested beans, do I need to register >>>> all of them or just the root? >>> >>> you should just have to register the root of the graph. >>> >>>> The documentation is helpful, but I seem to be missing something. >>>> >>>> Any help is greatly appreciated. >>> >>> are you using the alpha release or the latest code? >>> it would also help if you could supply an example of the xml document >>> you' >>> re trying to parse. >>> - robert >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org