aspose file tools*
The moose likes Struts and the fly likes Bean:Message - Advantages ? 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 » Frameworks » Struts
Bookmark "Bean:Message - Advantages ?" Watch "Bean:Message - Advantages ?" New topic
Author

Bean:Message - Advantages ?

Balbir Singh
Ranch Hand

Joined: Jun 01, 2001
Posts: 79
Hello,
This maybe a basic question, but I need some justification for my cause. I am working on an application (using struts) which is not required to support internationalisation, so in that case for displaying labels, do i need to use bean:message tag in my Jsp's. Is there any benefit that I will gain in using bean:message tag for the labels. I know it will work either way but I would definately like to follow the recommended approach here.
Thanks and Regards
Balbir


Thanks and Regards<br />Balbir Singh<br />Sun Certified Java Programmer<br />IBM Certified Administrator for WebSphere4.0
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
You can look at if from the standpoint of standardization as well. If you have pages that share certain pieces of text like "User ID" and someday they decide to change the terminology to "User Name", then you only have to make one change if you implemented messages. So "Date of Birth" could be "Birthday", "Jan"/"January", "Email"/"E-Mail". We use it EVERYWHERE, but we plan on internationalizing some day.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

I agree with Eric. If you can centralize labels like that, even if you don't think you will ever touch it again, then you can't go wrong. Because chances are, you will have to touch it again sometime. And that just makes life easier.


GenRocket - Experts at Building Test Data
 
Don't get me started about those stupid light bulbs.
 
subject: Bean:Message - Advantages ?
 
Similar Threads
bean:message tag inside logic:equal
"Missing message for key" error!
Putting i18n Value Into Tag
AJAX-I18N-Struts Query
retrieve value from property file from a variable