Hi,

I'm working with 2.0.8 struts version, and I have a problem with the next
validation file:

<validators>
<field name="email">
 <field-validator type="requiredstring" short-circuit="true">
     <message key="Sign.error_required" />
 </field-validator>
 <field-validator type="email" short-circuit="true">
     <message key="Sign.error_email" />
 </field-validator>
</field>
<field name="password">
 <field-validator type="requiredstring" short-circuit="true">
  <param name="trim">true</param>
     <message key="Sign.error_required" />
 </field-validator>
</field>
<field name="passwordRep">
 <field-validator type="requiredstring" short-circuit="true">
  <param name="trim">true</param>
     <message key="Sign.error_required" />
 </field-validator>
 <field-validator type="fieldexpression" short-circuit="true">
  <param name="expression">(passwordRep == password)</param>
     <message key="Sign.error_passwords_not_equal" />
 </field-validator>
</field>
</validators>


If I execute the form with the 3 fields (email, password and passwordRep) in
blank, 3 error messages are returned. I was reading that when a validation
short-circuited occurs, the next validations aren't executed. Nevertheless
-as I said- 3 error messages are returned.

What I'm doing wrong?

Thanks a lot in advance!

Reply via email to