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)
..............
I have never seen this problem before.
At first glance, you are lucky to find this article as long as you have found this problem.
This problem is simple and easy to solve.
Check the struts-config.xml first when this problem occurs
For example, if the form type is written as the action path, this error will be reported.
<Message-resources parameter = "com. jatty. Struts. applicationresources"/>
If it is correct, check whether your actionform inherits the validatorform, actionform, or other form parent classes.
It is because you configured the struts form, but you didn't configure the validate Method for her. You can use the validate method. As the saying goes, it's hard for a man to get rid of it. How can he do it with a porcelain, yes?
Another solution is to put validate = "false" in the struts-config.xml ".