• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean:Message - Advantages ?

 
Balbir Singh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic