"Resources cannot be null" 问题

来源:互联网 发布:java正则表达式取数字 编辑:程序博客网 时间:2024/05/24 11:14

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"。

原创粉丝点击