There is an example of how to use the addObjectCreate method:
digester.addObjectCreate("struts-config/global-forwards/forward",
forwardClass, "className");
Perhaps it would be less confusing if the description that reads:
A new object instance is created -- the ActionForward instance that will represent this definition. The Java class name defaults to that specified as an initialization parameter, but can be overridden by using the "className" attribute. The new forward instance is pushed onto the stack.
Read like this:
A new object instance is created -- the ActionForward instance that will represent this definition. The Java class name defaults to that specified as an initialization parameter which we have stored in the String variable forwardClass, but can be overridden by using the "className" attribute found in the the node we are currently parsing. The new forward instance is pushed onto the stack.
Either that, or just change the example to read like this:
digester.addObjectCreate("struts-config/global-forwards/forward",
"org.apache.struts.action.ActionForward", "className");
Is that fair?
Craig T.
--
I've been trying to change the world for years, but they just won't
give me the source code....
begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard