You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bill Siggelkow <bi...@bellsouth.net> on 2004/07/15 15:34:39 UTC

Re: validation wierdness possibly related to multiple struts config files

I am using this DTD declaration in my validation.xml and 
validator-rules.xml files:

<!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">

It lets me access the new <arg> element.

Bill

Bryan Hunt wrote:

> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org