File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Bean:Message - Advantages ?" Watch "Bean:Message - Advantages ?" New topic

Bean:Message - Advantages ?

Balbir Singh
Ranch Hand

Joined: Jun 01, 2001
Posts: 79
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

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: 15302

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
I agree. Here's the link:
subject: Bean:Message - Advantages ?
It's not a secret anymore!