Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error using Struts Validator Framework

 
Nadda Habba
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Iam trying to use Struts Validator Framework and am getting the below mentioned error. Please advice
Thanks in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using Struts version 1.3 or above, the validator-rules.xml file is included in the struts-core-1.3.x.jar file, and should be referenced by the location '/org/apache/struts/validator/validator-rules.xml in your struts-config.xml file.

However, if you're using an earlier version of Struts, you should include the validator-rules file in your WEB-INF directory and reference it as /WEB-INF/validator-rules.xml.
 
Nadda Habba
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem was with the dtd being referenced in validator-rules.xml and validator.xml. I modified it to refere to the local file rather than an interenet http:// url and it works. Thanks for the help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic