Announcement Announcement Module
No announcement yet.
spring jsp file Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring jsp file

    newbie here.

    i have a registration.jsp

    <form:form commandName="account" method="POST" name="account">
    <td>Email Address:</td>
    <td><form:input size='40' path="email"/></td>
    <td><font color="red"><form:errors path="email"/></font></td>
    <td><form:password size='40' path="password"/></td>
    <td><font color="red"><form:errors path="password"/></font></td>
    <td>Confirm Password:</td>
    <td><form:password size='40'/></td>
    <td><input name="confirmpassword"></td>
    <td><form:input size='40' path="name"/></td>
    <td><font color="red"><form:errors path="name"/></font></td>
    <td colspan="3" width="400" align="center"><input type="submit" value="Register"/>
    <input type="reset" value="Reset"/></td>
    <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
    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