`
tianying303
  • 浏览: 19528 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

Cannot find message resources under key org.apache.struts.action.MESSAGE

 
阅读更多




使用struts的tag <bean:write name="xxx" property="xxx"></bean:write><bean:write>的时候,当对象的属性值为long的时候,会报出如下的错误:</bean:write>
java 代码
org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE  
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)  
查找了很多资料,解决的方法非常有意思,在struts-config.xml中添加如下的配置:
xml 代码
<message-resources parameter="ApplicationResources"/> 
<message-resources parameter="ApplicationResources"></message-resources>
就可以啦!没想到struts还有这样奇怪的bug~~~
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics