| 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
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
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.
|
 |
 |
|
|
subject: Bean:Message - Advantages ?
|
|
|