File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Resource Bundle 3 values property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Resource Bundle 3 values property file" Watch "Resource Bundle 3 values property file" New topic
Author

Resource Bundle 3 values property file

Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
hi Guys,

This is the format of my properties file



I have to use these values in my JSP page.
Previously, I used BufferedReader to read each line and then use "split" method specifying '=' as delimeter.


But now, I have been asked to use ResourceBundle to read properties file.

When I googled for it , I found that using ResourceBundle we can use key/value pair scenario only. Here I have 3 values. How can I use ResourceBundle in this case.

Please give me the code also.

Thank You.
marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 176

properties are usually stored in key value pairs. It's difficult to see what is the key or property and what is its value in your initial scenario. Also, the resource bundle (as I understand) is used for localization where you have a key and a locale value, so I'm not to sure what the intent is here of either of your scenarios.

when in doubt put it in parenthesis and stick a dollar sign in front of it, only good can come from this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resource Bundle 3 values property file
 
Similar Threads
properties File Is Not in My Classpath
properties file using the ResourceBundle class?
include properties file in jsp
How to read properties file in netbeans?
How to change property file values using ResoureBundle