<message-resources parameter="ch12.ApplicationResources"/>
  
<message-resources parameter="ch12.HtmlErrors" key="ch12.HtmlErrors" />
 
<message-resources parameter="ch12.Colors"     key="ch12.Colors" />
后面两个key干什么用的啊?不明白了
是不是与 这个 html:select有关系啊?

解决方案 »

  1.   

    resource文件是properties文件啊,因为struts架够里面对多个resource的管理是用HashMap的,所以这个key就是HashMap的key.
    将来用的时候可以用key直接对应properties文件.;
      

  2.   

    是为了支持从不同的资源文件取信息用的,哈哈!
    <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里的资源。