aspose file tools
The moose likes Struts and the fly likes How do you handle your sucess messages? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How do you handle your sucess messages?" Watch "How do you handle your sucess messages?" New topic
Author

How do you handle your sucess messages?

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8141
    
  52

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 ]

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How do you handle your sucess messages?
 
Similar Threads
responsetext Ajax
Chained Exceptions
Error Display
SOAP binding mismatch Glassfish 2.1/JAX-WS
Asynchronous Messaging Solution other than MDB