1,properties文件
中文文件名:messageResource_zh_CN.properties
message.welcome = \u5317\u4EAC\u5965\u8FD0\u6B22\u8FCE\u4F60 {0}
英文文件名:messageResource_en_US.properties
message.welcome = Welcome come to beijing Olympic Games {0}
2,struts配置文件:struts.xml
<struts><!-- 根节点 -->
<constant name="struts.custom.i18n.resources" value="messageResource"></constant>
</struts>
3,jsp页面
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<s:text name="message.welcome">
<s:param>xiaoqiang</s:param>
</s:text>
</body>
</html>