Resources cannot be null

来源:互联网 发布:淘宝大学直通车 编辑:程序博客网 时间:2024/05/18 18:00

Resources cannot be null

Resources cannot be null

java.lang.illegalargumentexception: resources cannot be null. 
org.apache.commons.validator.validator.<init>(validator.java:188) 
org.apache.struts.validator.resources.initvalidator(resources.java:475) 
org.apache.struts.validator.validatorform.validate(validatorform.java:104)   
..............

这个问题还真的没有见过呢

乍一看还真蒙了,但是只要你出了这个问题还搜索到了这篇文章,那么你走运了

这个问题很简单,也很容易就解决了

就是因为你配置了struts的form,但是你没有给她配置validate方法,加上validate就可以通过了,俗话说巧妇难为无米之炊,人没有那金刚钻,怎么能干那瓷器活,是不?

还有一种解决方法就是在struts-config.xml里把validate="false"。