【发布时间】:2012-08-29 04:15:40
【问题描述】:
我使用的是 Struts 1.2,我需要在 JSP 页面中引用一些国际化字符串的值。通常我会使用 标记来执行此操作,但我需要从 Java 代码中引用它(由 包围)。
我该怎么做?
例如:
<%
person.setName("John Smith");
person.setOccupation("Chef"); // I want to internationalize this string
%>
【问题讨论】: