This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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)
 
 
subject: ResourceBundle