Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ResourceBundle

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is ResourceBundle ? what is locale specific object ? what is the difference between propertyresourcebundle & list.. ? what we can do with these ResourceBundle s? when they r needed ?
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I load property files into a ResourceBundle for EJB applications as the EJB spec forbids an enterprise bean to use the java.io package to access files and directories in the file system.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Resource bundles nothing but key/value pairs. Java contains ResourceBundle Abstract base class and two subclasses called ListResourceBundle and PropertyResourceBundle to handle these key/value pair Concepts.
Locale specific object coming in to the picture when, you want to design one application, specific to the particular Language or Country.
ListResourceBundle packs key/value pair in a separate class file but PropertyResourceBudle packs key/value pair in a separate ´┐Ż. properties´┐Ż text file. for more detailed information go through this sun site

http://java.sun.com/docs/books/tutorial/i18n/resbundle/concept.html

I hope this will give what u expected.
 
prasanna pati
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Roger Chung-Wee & Selva Varadhan

thanks for help & keep it up .

regards

prasanna
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic