Well, maybe the obvious solution will work.  See inline:

On Mon, 15 Nov 2004 15:46:35 -0000, John McCosker
<[EMAIL PROTECTED]> wrote:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons
> Validator Rules Configuration 1.0.1//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>
> <form-validation>
>        <!--========Form Definitions======-->
>        <formset>
>                <form name="loginForm">
>                        <field property="userName" depends="required">
>                                <arg0 key="error.userName.required"/>
>                        </field>
>                        <field property="password"
> depends="required.minlength">

maybe you mean: depends="required,minlength" 

>                                <arg0 key="error.password.required"/>
>                                <arg1 key="$(var:minlength)"
> name="minlength" resource="false"/>
>                                <var>
>                                        <var-name>minlength</var-name>
>                                        <var-value>5</var-value>
>                                </var>
>                        </field>
>                        <field property="password" depends="maxlength">

I don't think you should/can include multiple validation rule nodes
for the same property; just declare it once and put the validation
rules there.

>                                <arg0 key="error.password.required"/>
>                                <arg1 key="$(var:maxlength)"
> name="maxlength" resource="false"/>
>                                <var>
>                                        <var-name>maxlength</var-name>
>                                        <var-value>8</var-value>
>                                </var>
>                        </field>
>                </form>
>        </formset>
> </form-validation>

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

Reply via email to