Hi,
I recently started working on an excisting project that uses struts. A while ago I started to encounter problems all of a sudden… It seemed that there were problems loading the Validation rules:
INFO [org.apache.struts.validator.ValidatorPlugIn] Loading validation rules file from ‘/WEB-INF/validator-rules.xml’
INFO [org.apache.struts.validator.ValidatorPlugIn] Loading validation rules file from ‘/WEB-INF/validation.xml’
After a while I got a “connection: timeout” error, and it seemed that jakarta.apache.org was down… After some investigation in this (for me) new code I found these Doctypes:
<!DOCTYPE form-validation PUBLIC “-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN” “http://jakarta.apache.org/commons/dtds/validator_1_1.dtd”>
(I took this from the validation.xml file)
Now I was wondering if it always looks locally for the (in this case) validator_1_1.dtd file first, and, if it does, where does it look for it?
(As you can understand, I want to have these files locally… I don’t want to get in trouble when someone elses server crashes 🙂 )
I also tried to change the URL in the DOCTYPE is several xml-files, but after rebuilding the project, the doctype is changed back to the former value….
I’m fairly new in the world of struts and validation 🙂 So ANY help is very much appreciated…
Thanx in advance!