Use "validWhen" and you conditional can be

(*this* == password) to evaluate whether password2 is equal to password always
((password == null) or (*this* == password)) to evaluate whether
password2 is equal to password only when password is not empty

Please take a look
http://struts.apache.org/userGuide/dev_validator.html. It also has an
example on "Comparing two fields".


On Sat, 22 Jan 2005 11:40:01 +0530, Kalluru Uma. Maheswar
<[EMAIL PROTECTED]> wrote:
> Hi,
> How do I validate if the user has entered password and confirm password
> the same? How to do this in validate.xml file?
> 
> Thanks
> Uma
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to