hi,
newbie here.

i have a registration.jsp

Code:
<form:form commandName="account" method="POST" name="account">
<tr>
<td>Email Address:</td>
<td><form:input size='40' path="email"/></td>
<td><font color="red"><form:errors path="email"/></font></td>
</tr>

<tr>
<td>Password:</td>
<td><form:password size='40' path="password"/></td>
<td><font color="red"><form:errors path="password"/></font></td>
</tr>

<tr>
<td>Confirm Password:</td>
<td><form:password size='40'/></td>
<td><input name="confirmpassword"></td>
</tr>


<tr>
<td>Name:</td>
<td><form:input size='40' path="name"/></td>
<td><font color="red"><form:errors path="name"/></font></td>
</tr>


<tr>
<td colspan="3" width="400" align="center"><input type="submit" value="Register"/>
<input type="reset" value="Reset"/></td>
</tr>

</table>
</form:form>

<script language = "Javascript">
  function ValidatePassword(){
        var pw1=document.registration.password.value
        var pw2=document.registration.confirmpassword.value

        if (pw1 != pw2){
                alert("You did not enter the same new password twice. Please    re-enter your password.")
                return false
        }
	return true
 }
</script>
I didn't put a path file in confirmpassword tag..which "path" is mandatory in a tag file.
i didn't put because i made a separate function for the confirmpassword respectively, and the rest of the fields (email, password and name) are called in account class.

question is, how can i make the confirm password call the function ValidatePassword() without interrupting the account class..or is there other tag file that i can use to call the function ValidatePassword() for the confirmpassword??

thanks for any help