wood burning stoves 2.0*
The moose likes Servlets and the fly likes ResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ResourceBundle" Watch "ResourceBundle" New topic
Author

ResourceBundle

sean zang
Ranch Hand

Joined: Apr 22, 2000
Posts: 33
Hi,all
Does anybody use ResourceBundle ? why should we use it?
In the statement:
ResourceBundle rb = ResourceBundle.getBundle("LocalStrings")
What does LocalStrings mean?
thanks in advance
gbvenkat
Greenhorn

Joined: Jul 04, 2000
Posts: 2
Hi,
it is actually we use for localization which means that the labels in the user interface to understand in its own language for example the web page which we developed in english may not understand by some people and they want in their own language for that reason the locaization is needed in order to achieve it we use resource bundle in java and LocalStrings is a name of the properties file where we store all the conversion mechanism replace Hello label as Hillo etc.
I hope now you will be clear with this stuff.
Regards,
venkat
Originally posted by sean zang:
Hi,all
Does anybody use ResourceBundle ? why should we use it?
In the statement:
ResourceBundle rb = ResourceBundle.getBundle("LocalStrings")
What does LocalStrings mean?
thanks in advance

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
ResourceBundle is class. Its also same as properties
suppose you want to add some values in Listbox in installation times. so you can put that values in text file with labels. Now thro' the code you can get the values. ResourceBundle will refer the text file.
Let me know if i'm unclear
with regards
prakash
(prak_m@yahoo.com)
 
jQuery in Action, 2nd edition
 
subject: ResourceBundle
 
Similar Threads
refresh ResourceBundle contents
Displaying English language content in other languages
Properties File in Jsp Project
Problem in starting Tomcat.
Servlet [servlet-name] is currently unavailable