How do i compare two fields value in validation.xml file

Hi All

<form name="CreateUserForm">

<field

property="username"

depends="required">

<arg key="CreateUserForm.username"/>

</field>

<field

property="password"

depends="required">

<arg key="CreateUserForm.password"/>

</field>

<field

property="confirmpassword"

depends="required">

<arg key="CreateUserForm.confirmpassword"/>

</field>

</form>

how do check this two fields value is same or not ?

[569 byte] By [validation.xmla] at [2007-11-27 6:49:32]
# 1
Retrieve the field values with XPath and compare with ==
dvohra09a at 2007-7-12 18:23:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
how can i Retrieve the field values with XPath?
bhaveshjivania at 2007-7-12 18:23:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html
dvohra09a at 2007-7-12 18:23:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Thanks

But any other method is there to solve this problem.

Once again i repeat my question.

i want to make a client side validation of password and confirm password's value are same, using validation-rule.xml or validation.xml file.

This is validation.xml file

<form name="CreateUserForm">

<field property="username"

depends="required">

<arg key="CreateUserForm.username"/>

</field>

<field property="password"

depends="required">

<arg key="CreateUserForm.password"/>

</field>

<field property="confirmpassword"

depends="required">

<arg key="CreateUserForm.confirmpassword"/>

</field>

</form>

Now how can i compare this two filed password and confirm password

bhaveshjivania at 2007-7-12 18:23:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...