commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Blom <>
Subject Key/Value setting
Date Tue, 09 Nov 2004 18:40:14 GMT
I'm trying to put contents into a map object like so:
  <person id="Jon">
  <person id="Sue">
I have a person object, that i want to store in a map
with the key being the person id. Is this possible? I
think I'm close, but missing on something.
digester.setObjectCreate("people", java.util.HashMap);
digester.setCallMethod("people/person", "put", 2);
digester.setCallParam("people/person", 0, "id");
digester.setCallParam("people/person", 1); ?

The id is set right, but the object value isn't. What
am i missing?
Thanks - Steve

Do you Yahoo!? 
Check out the new Yahoo! Front Page. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message