Struts1.3 多个properties资源文件

是为了支持从不同的资源文件取信息用的,哈哈!
<message-resources parameter= "ch12.ApplicationResources "/>

<message-resources parameter= "ch12.HtmlErrors " key= "ch12 " />

<message-resources parameter= "ch12.Colors " key= "ch13 " />
页面中使用方法是
<bean:message bundle= "ch12 " key= "error.notag "/>

这里的bundle对应你配置文件中的key,后面的key是对应的是ch12.HtmlErrors里的资源。

你可能感兴趣的:(Struts1.3 多个properties资源文件)