简体   繁体   中英

Internationalization in a JSP web application?

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?

根据Java EE 5教程国际化标记库部分,这些标记不是过时的,是处理i18n JSP页面的标准方法。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM