struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Vanderstukken" <>
Subject validwhen returns is required error msg
Date Mon, 02 Jul 2007 13:30:17 GMT
I have the following validation rule :

<field property="newPasswordConfirm"
                <arg position="0" key="valid.confirmnewpassword"/>
                      <var-value>(*this* == newPassword)</var-value>

In my ressource file:
errors.required={0} is required.
errors.invalid={0} is invalid.
valid.confirmnewpassword=Confirm new password

If I enter two differents values for newPasswordConfirm and newPassword the
error message displayed by html:errors tag is :
Confirm new password is required instead of Confirm new password is invalid.

Am I doing something wrong?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message