struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <>
Subject Re: disable validation of validator.xml & validator-rules.xml
Date Wed, 01 Dec 2004 12:36:22 GMT
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.

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

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


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

Any help?


To unsubscribe, e-mail:
For additional commands, e-mail:

Joe Germuska   
"Narrow minds are weapons made for mass destruction"  -The Ex
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message