This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you handle your sucess messages?

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now, all my success messages are in my class, stored as String objects. Are there any better way of handling this? Could someone show me please a better sample? Thanks!
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i understand your question right, what you are looking for is Resource Bundles. Here are a few links for the same:

Resource Bundle Javadoc

Struts Message Resources

Using Resource Bundle in Struts

Section "Generating Localized Text" at Internationalization of messages

Resource bundle help you in moving your messages from your java file to *.properties file. These properties files are known as resource bundles and contain key-value pairs of messages that you use in your application.
[ July 21, 2006: Message edited by: jaikiran pai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic