commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [Digester] element names
Date Wed, 09 Jul 2003 18:43:35 GMT
On Wednesday, July 9, 2003, at 01:11 PM, Lister, Tom (ANTS) wrote:

> Hi
> I have got the behaviour I want by extending the CallMethodRule as per the
> code below (basically setting the bodyText to the element name). Then
> configuring it as
>         digester.addCallMethod("FXTRADE/sale_ccy", "addCurrencyMapping", 
> 2);
>         digester.addCallParam("FXTRADE/sale_ccy", 0);
>         digester.addRule("FXTRADE/sale_ccy", new ElementNameParamRule(1))
> ;
> My question is really given my two days experience of Digester, Is this a
> sensible solution.

maybe not the most elegant solution (still not bad given only two days of 
digester) but i think that it'd probably work fine.

- robert


Mime
View raw message