Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

supporting multiple languages in a JSP page  RSS feed

 
don cline
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone direct me toward reference material for the best way to support multiple languages in Java Server Pages? The page should be able to display in English, Spanish, and probably other languages. I would like to not have different versions of the page, but different versions of the text displayed. Looking for the right design pattern for this (I can think of multiple ways, but what is the best way, I am sure others have solved this.)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the fmt class of tags from the JSTL.
 
jhon masco
Ranch Hand
Posts: 98
 
don cline
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both...

Don
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your target is "western European" languages, like English, French, Spanish, German, etc. then its pretty direct how to use things like 'fmt' and bundle properties to switch. Doing the translations properly is a bit of a challenge, but its mostly a matter of knowing the languages fluently.

Once you get into middle-eastern languages or Asian languages, there are lots of challenges, The basic translation is still the same idea, but the presentation becomes a big issue.
\
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!