commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [PATCH] digester XML (call-param-rule)
Date Mon, 07 Oct 2002 16:02:09 GMT
Which version of Digester are you using?  There were several bugfixes to
the XML rules processing since the 1.3 release -- please try a recent
nightly build if you are not currently using one.

Also, please submit patches in "diff -u" format, as requested on the
Jakarta web site.  This facilitates accurately incorporating your patch
into the Digester source code.

Craig McClanahan


On Mon, 7 Oct 2002, Philippe Mouawad wrote:

> Date: Mon, 7 Oct 2002 10:03:40 +0200 (CEST)
> From: Philippe Mouawad <mouawad_philippe@yahoo.fr>
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: commons-dev@jakarta.apache.org
> Subject: [PATCH] digester XML (call-param-rule)
>
> I found a bug in the digester.
> It happens when you use the rules written in xml
> instead of writing them in the code (see code below).
> The bug happens when you use "<call-param-rule />" in
> the xml file.
>
> try
> {
> FileInputStream fis = new
> FileInputStream(configFileName);
> // the file "config-rules.xml" contains rules written
> //in xml
> URL url = getClass().getResource("config-rules.xml");
> BatchContext config =  (BatchContext)
> DigesterLoader.load(url, getClass().getClassLoader(),
> fis, this);
> fis.close();
> }
> catch(DigesterLoadingException dle)
> {
> throw new BatchException(dle);
> }
> catch (SAXException ioe)
> {
> ioe.printStackTrace();
> throw new BatchException(ioe);
> }
> catch (IOException ioe)
> {
> throw new BatchException(ioe);
> }
>
>
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran├žais !
> Yahoo! Mail : http://fr.mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message