Hi,
This question may have been answered before.. but I couldn't find it in the
archive.. I'll give it a shot anyways.
I have a DynaValidatorForm which contains a few parameters, let's take email
and password for example. When the form is submitted with no password, and
an invalid email address like "[EMAIL PROTECTED]" the validation does not check
for the correct format (mask/minlength) of the email field.
This means a user will be notified that the password field is missing after
the first submit. After the problem is corrected, the user will get a
second error on the second submit attempt, indicating invalid format for the
email address.
Is there anyway to get struts validation to go through all the validation
tasks?
In the validation.xml file I've specified the following
<field property="email" depends="required,email,minlength">
<arg0 key="loginForm.email.displayname"/>
<arg1 name="minlength" key="${var:minlength}"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="password" depends="required, minlength">
<arg0 key="loginForm.password.displayname"/>
<arg1 name="minlength" key="${var:minlength}"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>6</var-value>
</var>
</field>
I'm using Struts 1.1b2 but I've tried 1.1b3 to no avail.
Thanks,
KT
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]