1、在JSP页面添加语言连接
class="java" name="code">Language: <a href="${ctx}/admin/language/doLanguage.action?local=zh_CN">中文</a> | <a href="${ctx}/admin/language/doLanguage.action?local=en_US">英文</a>
?
2、在Action中设置选择的语言
String[] localArr = local.split("_"); String language = localArr[0]; String country = localArr[1]; ActionContext.getContext().getSession().put("WW_TRANS_I18N_LOCALE", new Locale(language, country));
?