with this definition it seems to be working ok for the time being
<!DOCTYPE form-validation SYSTEM "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd">
curse these dtd's :-)
--b
Niall Pemberton wrote:
I got confused recently about validator versions - validator 1.1.3 has just been released and thats what Struts 1.2.1 uses - validator 1.2 is still in development so you need to be using
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
Niall
----- Original Message ----- From: "Bryan Hunt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 2:20 PM
Subject: Re: validation wierdness possibly related to multiple struts config
files
finally solved it.
When you have the following DTD definition in your validation.xml file snip= <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd"> =snip It breaks.
When you have the following DTD definition in your validation.xml file * *snip= <!DOCTYPE form-validation SYSTEM "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"> =snip* *It works
When you have the following DTD definition in your validation.xml file snip= <!DOCTYPE form-validation SYSTEM "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd"> =snip It works.
--b
Bryan Hunt wrote:
Ok , dunno who to report this to but this validator stuff needs to be looked at before this is released to the public cause it's a bit of a mess.
Just noticed that the version of validator-rules that is distributed is for the validator_1_1.dtd version.
I think somebody needs to take a little look at this. It doesn't seem to know whether to do 1.1 or 1.2 stuff. Some of the behaviour is from one and some from the other.
--b
Bryan Hunt wrote:
Thank you Bill, your answer was correct. I've found that commons-validator as distibuted with the latest 1.2.1 version of struts doesn't include the http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd file. So despite my specifying the DTD like so snip=
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd"> =snip
I've copied the following files over to my libs dir.
snip=
08/07/2004 09:26 358,273 antlr.jar
08/07/2004 09:26 118,726 commons-beanutils.jar
08/07/2004 09:26 165,119 commons-collections.jar
08/07/2004 09:26 109,096 commons-digester.jar
08/07/2004 09:26 22,379 commons-fileupload.jar
08/07/2004 09:26 38,015 commons-logging.jar
08/07/2004 09:26 84,260 commons-validator.jar
08/07/2004 09:26 65,425 jakarta-oro.jar
08/07/2004 09:26 520,842 struts.jar
=snip
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]