struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg V Alexeev <>
Subject Re: Digester Help PLEASE
Date Fri, 24 Aug 2001 13:39:11 GMT
Hello Sean,

You can create only ONE instance of Digester in your application. If
it can help you...

Friday, August 24, 2001, 5:26:22 PM, you wrote:

S> Ok, after spending over 2 hours trying to debug this can I get some eyes on
S> this please?  Does anyone see anything wrong with this method ran against
S> the attached datafile:

S> protected void initMappings(InputStream input) {

S>     Digester digester = new Digester();
S>     digester.setDebug(1);
S>     digester.setValidating(false);
S>     digester.push(this);

S>     digester.addObjectCreate("factory-selector/factory",
S> "");
S>     digester.addSetProperties("factory-selector/factory");
S>     digester.addSetNext("factory-selector/factory", "addFactory",
S> "");

S>     digester.addObjectCreate("*/patternset", "");
S>     digester.addSetProperties("*/patternset");
S>     digester.addSetNext("*/patternset", "addPatternSet",
S> "com.parlano.web.struts.mapping.PatternSet");

S>     digester.addCallMethod("*/pattern", "addPattern", 0);

S>     try {
S>       digester.parse(input);
S>     }
S>     catch (Exception e) {
S>       System.out.println("DAMN ERRORS");
S>       e.printStackTrace();
S>     }
S> }

S> PLEASE, any help would be greatly appreciated ... I can't figure out why
S> NONE of my objects are getting created nor are they getting populated.  No
S> methods are getting called ...I get no exceptions no nothing ... I put print
S> statements around things and it is getting through all of this.  I also
S> tried breaking the XML in the datafile and it breaks and errors out so I
S> know it is parsing the file.  ANY help would be appreciated, Thanks ...

S> Sean

Best regards,

View raw message