struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean" ...@seanwillson.com>
Subject Re: Digester Help PLEASE
Date Sat, 25 Aug 2001 14:37:02 GMT
Does anyone have any other insight as to why this is happening?  I still
can't get this ... and it is starting to drive me crazy.

Sean
----- Original Message -----
From: "Sean" <jakarta@wideasleep.com>
To: "Struts Users" <struts-user@jakarta.apache.org>
Sent: Friday, August 24, 2001 8:26 AM
Subject: Digester Help PLEASE


> 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