commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reid Pinchback <rei...@yahoo.com>
Subject RE: Property not being set [Digester]
Date Thu, 09 Sep 2004 18:38:07 GMT
Almost forgot, there is a way to both avoid changing
the XML and avoid changing the code.  Use a
SetPropertiesRule and specify the mapping of the
attribute name to a property name.

Digester d=new Digester();
// set rules as usual, and also
Rule spr=new SetPropertiesRule("foo","fooText");
d.addRule(yourPattern, spr);
// parse as usual





		
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message