Validate resources java. Lang. illegalargumentexception

Source: Internet
Author: User

Path login. jsp does not start with a "/" Character

 

Obviously. A "/" is missing in the Struts-config configuration file. Add "/" (

Resources cannot be null

Keyword: Validate resources java. Lang. illegalargumentexception:

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

 

It is because the struts form is configured, but you didn't configure the validate Method for her. You can use it after adding the validate.

Another solution is to put validate = "false" in the struts-config.xml ". This is a problem I encountered while learning Ajax. I thought it was a problem with Ajax.ArticlePut the Ajax verification example (2009.9.14)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.