struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean" <jaka...@wideasleep.com>
Subject Digester Help PLEASE
Date Fri, 24 Aug 2001 13:26:22 GMT
Ok, after spending over 2 hours trying to debug this can I get some eyes on
this please?  Does anyone see anything wrong with this method ran against
the attached datafile:

protected void initMappings(InputStream input) {

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

    digester.addObjectCreate("factory-selector/factory",
"com.company.Factory");
    digester.addSetProperties("factory-selector/factory");
    digester.addSetNext("factory-selector/factory", "addFactory",
"com.company.Factory");

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

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

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

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

Sean

Mime
View raw message