- 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.yes. betwixt should work in a reasonable manner without a .betwixt file.
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.2) Is it necessary to register every bean before calling BeanReader.parse(you should just have to register the root of the graph.
)? In other words, if I have nested beans, do I need to register all of them or just the root?The documentation is helpful, but I seem to be missing something.are you using the alpha release or the latest code?
Any help is greatly appreciated.
it would also help if you could supply an example of the xml document you'
re trying to parse.
- robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
