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