On Mon, 2005-04-11 at 10:29 +0530, Rupesh Khandelwal wrote:
> Hi All,
> 
> I have recently started using digester, So far I have been able to make
> things work, however I have certain questions in mind.
> 
> 1. Even when I have registered only a fileAppender for digester
> logger, digester is logging messages on the console also. Can I stop
> that?

Digester logs sax-related messages to a category named
"org.apache.commons.digester.Digester.sax" (as described in the javadoc
package documentation), so you need to configure logging to control that
category appropriately.

> 2. If certain method (being called from digester internally) returns
> an object, how can I use this object for subsequent digester
> operations. (Can this returned be even pushed on the top of the stack)

The FactoryCreateRule allows user code to return objects which end up on
the digester stack.

However Digester does not support the ability for invoking methods on
objects already on the digester stack which return new objects to be
manipulated. I guess you could write a custom Rule class to do this, but
I can't see when this might be useful...

Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to