On Fri, 2005-05-20 at 14:22 +0200, Mattias J wrote: > It was a while since I worked with Digester, so there might be a more > straightforward way to call static methods which I have forgotten, but > otherwise couldn't you use a factory-create-rule which could then access > the file name through it's parameter > public Object createObject(Attributes attributes)
Unfortunately, FactoryCreateRule expects an object to be returned which it then pushes on the stack. But in Magnus' case, there isn't any suitable object to return as far as I can see. I don't know what would happen if null was returned...maybe it would work (null would be pushed onto the digester stack, but as long as nothing tried to access it things would be ok). I think a custom Rule class is a tidier solution though.. Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]