A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
To retreive values from property file which have the same key
Joined: Nov 29, 2005
Nov 29, 2005 03:19:00
In a properties file "ApplicationResources.properties", I have many values having the same key. For Example
label.id = 10
Is there any way by which I can retrieve all the values referenced by the key label.id
I need to use this in a jsp.
is there any tag provided (by Struts)?
Joined: Dec 11, 2004
Nov 29, 2005 04:39:00
The underlying data structure for a
is a hashTable.
HashTables can't have multiple elements with the same key.
One would overwrite the other.
How to ask a question...
Simple Servlet Examples
Author and ninkuma
Joined: Jan 10, 2002
Nov 29, 2005 08:00:00
Moved to Java in General (intermediate).
Books by Bear
I agree. Here's the link:
- it saves me about five hours per week
subject: To retreive values from property file which have the same key
Storing key-value pairs: Better apporaches for storing and reading?
Map having same keys ...
save properties file without affecting existing comments.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013