Cannot find message resources under key org.apache.struts.action.MESSAGE
2008-12-12 14:13
555 查看
新建个项目,显示long类型字段的时候报错:Cannot find message resources under key org.apache.struts.action.MESSAGE
下面方法可以解决:
在struts-config.xml中添加如下的配置:
<message-resources parameter="ApplicationResources"/>
如果出现“Cannot find message resources under key org.apache.struts.action.MESSAGE”,是说明未找到ApplicationResources.properties,要注意三方面设置。
第一:在web.xml适当位置要有如下设置:
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param> 第二:在struts-config.xml中适当位置要有如下设置:
<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"/>
下面方法可以解决:
在struts-config.xml中添加如下的配置:
<message-resources parameter="ApplicationResources"/>
如果出现“Cannot find message resources under key org.apache.struts.action.MESSAGE”,是说明未找到ApplicationResources.properties,要注意三方面设置。
第一:在web.xml适当位置要有如下设置:
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param> 第二:在struts-config.xml中适当位置要有如下设置:
<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"/>
相关文章推荐
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- 在做成绩查询时出现Cannot find message resources under key org.apache.struts.action.MESSAGE
- Struts Cannot find message resources under key org.apache.struts.action.MESSAGE
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- Cannot find message resources under key org.apache.struts.action.MESSAGE的错误
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- 解决:Cannot find message resources under key org.apache.struts.action.MESSAGE的 方法
- 新建个项目,显示long类型字段的时候报错:Cannot find message resources under key org.apache.struts.action.MESSAGE
- javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action...
- cannot find message resources under key org.apache.struts.action.message 问题解决
- Cannot find message resources under key org.apache.struts.action.MESSAGE
- 使用struts的tag ,当对象的属性值为long的时候:org.apache.jasper.JasperException: Cannot find message resources under
- Cannot find bean under name org.apache.struts.taglib.html.BEAN
- java开源框架集成常见错误之Cannot find bean under name org.apache.struts.taglib.html.BEAN
- java开源框架集成常见错误之Cannot find bean under name org.apache.struts.taglib.html.BEAN
- Cannot find bean under name org.apache.struts.taglib.html.BEAN
- org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError