JSP Web应用程序中的国际化? [英] Internationalization in a JSP web application?

查看:87
本文介绍了JSP Web应用程序中的国际化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前的项目中,我们正在考虑逐步淘汰旧的表示层,并用更现代,更知名的东西代替它.由于各种原因,选择了JSP作为技术.可能与Apache Tiles结合使用.我也许应该提一下,如果这很重要的话,我们将在后面使用Spring.

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.

我发现的是JSTL fmt命名空间.特别是将fmt:messagefmt:param一起使用.但是,我发现有关使用此技术的大多数参考文献都过时了.

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.

所以,我想知道是否仍然建议这样做?如果没有,有哪些替代方案?在这些主题上是否有任何良好的链接,描述了如何在Web应用程序中成功实现i18n?

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?

推荐答案

根据 The Java的="nofollow noreferrer">国际化标记库部分EE 5教程,这些标记并不是过时的,并且是处理i18n JSP页面的标准方法.

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.

这篇关于JSP Web应用程序中的国际化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆