Ultimately, this is the responsibility of the commons-validator library which Struts uses. For each config file, a "ValidatorResources" object is constructed. This object uses commons-digester to process the XML config.

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java?view=markup

This object exposes no way to turn off validation, but it does make use of Digester's facility for registering DTDs against copies in the classpath. If your file uses one of the DTDs listed in the"registrations" array in ValidatorResources (see source at above URL) then you won't have any problem. From a brief glance, I wonder if some new registrations need to be added? If you have time to check, perhaps you could file a bug against commons-validator at http://issues.apache.org/bugzilla

For the near term, the suggestion of specifying an alternate local URL for the DTD is probably best.

Joe



At 10:28 AM +0000 12/1/04, Marco Mistroni wrote:
Hello all,
        Does anyone know how to disable the validation of the two files
mentioned in the subject?
Looks like struts, when loaded, is trying to validate those files
against the DTD... and if by mistake my internet connection goes down,
then code
Won\t work. (meaning, I am using WAS Studio, and it complaints that it
cannot validate the two files... and without tht I cannot build my
webapp..)

Any help?

Regards
        marco




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex

Reply via email to