STRUTS2 Validator Specification Error resolution

Source: Internet
Author: User

The configuration file header for the Struts2 validator today has an error, as follows:

<! DOCTYPE validators Public
"-//opensymphony group//xwork Validator 1.0.2//en"
"Http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd" >

The error message is as follows:

Referenced file contains errors (HTTP://WWW.OPENSYMPHONY.COM/XWORK/XWORK-VALIDATOR-1.0.2.DTD). For more information, right click on the Problems
View and select "Show Details ..."

Check the Internet, because HTTP://WWW.OPENSYMPHONY.COM/XWORK/XWORK-VALIDATOR-1.0.2.DTD is not a DTD constraint file, open the Web site, found that Opensymphony's web site has moved away , because xwork things have been incorporated into the struts2 and become part of Apache. All the DTDs have been handed over to http://struts.apache.org/dtds/this place.

      after the struts2 of the specification of the validator to be changed to:
<?xml version= "1.0" encoding= "UTF-8"
<! DOCTYPE validators Public "-//apache struts//xwork Validator 1.0.2//en" "http://struts.apache.org/dtds/ XWORK-VALIDATOR-1.0.2.DTD
       So there will be no error, normal operation.

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.