Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 57489 invoked by uid 500); 24 Aug 2001 13:40:20 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 57431 invoked from network); 24 Aug 2001 13:40:20 -0000 Received: from infodesign-2.abcenter.ru (HELO office.infodesign.ru) (trilluser@195.133.184.65) by h31.sny.collab.net with SMTP; 24 Aug 2001 13:40:20 -0000 Received: from oracle.infodesign.ru by office.infodesign.ru with SMTP (MDaemon.v3.5.0.R) for ; Fri, 24 Aug 2001 17:49:54 +0400 Date: Fri, 24 Aug 2001 17:39:11 +0400 From: Oleg V Alexeev X-Mailer: The Bat! (v1.53bis) Reply-To: Oleg V Alexeev Organization: The Apache Software Foundation X-Priority: 3 (Normal) Message-ID: <124269721288.20010824173911@penza.net> To: struts-user@jakarta.apache.org Subject: Re: Digester Help PLEASE In-Reply-To: <001401c12ca0$5e56a250$8320010a@adtest.chil1.parlano.com> References: <001401c12ca0$5e56a250$8320010a@adtest.chil1.parlano.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Return-Path: oalexeev@apache.org X-MDaemon-Deliver-To: struts-user@jakarta.apache.org X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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> "com.company.Factory"); S> digester.addSetProperties("factory-selector/factory"); S> digester.addSetNext("factory-selector/factory", "addFactory", S> "com.company.Factory"); S> digester.addObjectCreate("*/patternset", "com.company.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, Oleg mailto:oalexeev@apache.org