第一:在web.xml适当位置要有如下设置:
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<message-resources parameter="ApplicationResources"/>
第三:确保ApplicationResources.properties文件在你建立的WEB-INF\classes文件夹中,而且其中有关于index.title的设置(当然,以你要提取的key名称为准)。另外说明,你也可以把ApplicationResources.properties放到classes文件夹下其它目录,同时修改struts-config.xml中的对应设置。例如:
将“ApplicationResources.properties”放入WEB-INF\classes\test文件夹下。struts-config.xml中的对应设置:
<message-resources parameter="test/ApplicationResources"/>

