commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Vawter <>
Subject Re: [configuration] newbie ?, empty config
Date Sun, 09 Jan 2005 17:43:59 GMT
got it. I have it working with the indices notation. As I suspected I 
misunderstood what the "keys" were. Thanks

Oliver Heger wrote:

> The getKeys() method returns all keys that are assigned at least one 
> value. In your case keys like or 
> buttons.button.url appear only once in the iteration, but they have 
> multiple values. The call config.getProperty("") 
> would indeed return a collection with all names defined for buttons.
> With the syntax config.getString("buttons.button(0).name") you can 
> directly query the name of the first button. So you can use numeric 
> indices to specify which value you want, but those indices do not 
> appear in the results of getKeys().
> Oliver


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

View raw message