Internationalization in a JSP web application?

In my current project, we look at phasing out our old presentation layer and replacing it with something more modern and better known. For various reasons, JSP was chosen as the technology. Perhaps in combination with Apache Tiles. Perhaps I should mention that we use Spring in the back, if that matters at all.

Internationalization is a requirement, in particular the aspect of displaying text messages in the user's language. It amazes me that there is not much information about this as I expected.

I found this JSTL namespace fmt. Especially when using fmt:messagewith fmt:param. However, most of the links I found regarding the use of this technique look dated.

So, I wonder how much is this still recommended? If not, what are the alternatives? Are there any good links to topics that describe how to successfully achieve i18n in a web application?

+3
source share
2 answers

According to > The Internationalization Library in the Java EE 5 Tutorial section , these tags are not outdated and are the standard way to work with i18n JSP pages.

+4
source

i still uses JSTL 1.2 for i18n. works like a charm. may not be updated in recent years, but still does what needs to be done.

+1
source

Source: https://habr.com/ru/post/1734013/


All Articles