1, 资源文件中一般以键值对的方式保存数据。
以.properties结尾,可以为基本名xxxx..properties结尾,或者xxxx_xx.properties结尾st
2,在struts的配置文件中注册资源文件
<message-resources parameter="joeho.blog.csdn.resource.ApplicationResource" key="mykey"></message-resources>
3,在JSP中导入标签TAG
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
4,在页面中使用
<bean:message bundle="mykey" key="username"/>