Reputation: 18743
In my current project, we are looking at phasing out our old presentation layer and replacing it with something more modern and more well-known. For various reasons, JSP was chosen as the technology. Possibly in conjunction with Apache Tiles. I should perhaps mention that we are using Spring in the back, if that matters at all.
Internationalization is a requirement, in particular the aspect of showing text messages in the user's language. It surprises me that there is not so much information about this as I had expected.
What I have found is the JSTL fmt
namespace. Especially using fmt:message
together with fmt:param
. However, most references I have found regarding using this technique appear dated.
So, I am wondering if this is still recommended practice? If not, what are the alternatives? Are there any good links on the subjects, describing how to successfully achieve i18n in a web application?
Upvotes: 3
Views: 1278
Reputation: 9440
i still using JSTL 1.2 for i18n. works like a charm. maybe not updated at all last years but is still does what is must do.
Upvotes: 1
Reputation: 570325
According to the Internationalization Tag Library section of The Java EE 5 Tutorial, these tags are not outdated and are the standard way to deal with i18n of JSP pages.
Upvotes: 4