Hello, Thanx for suggestion... however WAS Studio is giving me problems When building my application
I have specified following as DTD reference
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "/org/apache/commons/validator/resources/validator_1_1_3.dtd">
Two things: first, I don't think that your DTD public identifier is one which was ever actually registered. Where did you get the value "-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.1.3//EN" ?
From the Validator CVS repository, the newest DTD is this one:
<!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">
That public ID ("-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN") is linked in the Validator code to a copy of the DTD which is included in the commons-validator JAR. If you use this public ID, you shouldn't ever need to be online, because the configuration process will read the DTD from the JAR.
On the other hand, if you do want to specify a local path to a DTD in a DOCTYPE declaration, you probably need to specify it as a fully-qualified "file:///" URL (which has its own portability problems). I'm not sure that there's a determinate way to predict how different XML processors will resolve a relative URL.
Joe
and WAS Studio keeps on telling me that it cannot find the dtd on filesystems..
anyone had similar problems?
Regards marco
-----Original Message----- From: Derek Broughton [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 14:05 To: Struts Users Mailing List Subject: Re: disable validation of validator.xml & validator-rules.xml
On Wednesday 01 December 2004 08:36, Joe Germuska wrote: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/or g/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.
I had the same problem last week, and the simplest solution is to make sure you have the latest commons-validator jar. 1.1.3 validates properly against the DTD in the jar file, rather than needing to go to the web.
(But thanks for the more detailed explanation of _why_ going to 1.1.3 worked for me, Joe) -- derek
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]