hi...
i had developed one web application....in it i had one jsp page...in it....i had done validations...if i pressing submit button it is not going to another page...can anyone help me out.. the code is as follows
<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <% %> <html> <head> <title>Registration page</title> <style type="text/css"> body { background-color:#F0F8FF; margin: 125px 50px 175px; } </style> <script type="text/javascript" src="register.js"></script> </head> <body> <form method="post" name="form" action="" /> <p align="center"> </p> <div style="background: #cf2255; width:'100%'" align="center"> <font color="#ffffcc" size="12pt"><b>GPRS</b></font></div> <div style="background: #ffffcc; width:'100%'" align="center"> <p align="left"> </p> <form action="/Gprs/regdetails.jsp" method="post" > <table border="0" cellpadding="0" cellspacing="0" width="32%"> <tr><td colspan="2"><center><h1><i><b>Registration Page</b></i></h1></center></td></tr> <tr><td><h3><b>Login ID:</b></h3></td> <td> <input name="id" type="text" ></td></tr> <tr><td><h3><b>User Name:</b></h3></td> <td><input name="username" type="text"></td></tr> <tr><td><h3><b>Password:</b></h3></td><td> <input name="pswd" type="password"></td></tr> <tr><td><h3><b>Name of the circle:</b></h3></td><td> <select NAME="name"> <option value="select">select</option> <option value="AP">AP</option> <option value="Kerala">Kerala</option> <option value="Punjab">Punjab</option> <option value="Gujarat">Gujarat</option> <option value="Chennai">Chennai</option> <option value="Orissa">Orissa</option> </select></td></tr> <tr><td><h3><b>Gprs Packs:</b></h3></td><td> <select NAME="gprs"> <option value="select">select</option> <option value=500>500</option> <option value=250>250</option> <option value=200>200</option> <option value=150>150</option> <option value=100>100</option> <option value=50>50</option> <option value=default>default</option> </select></td></tr> <tr><td><h3><b>Activation Status:</b></h3></td><td> <select NAME="act"> <option value="select">select</option> <option value="yes">YES</option> <option value="no">NO</option> </select></td></tr> <tr><td> <center><input type="button" onClick="pasuser(this.form)"name="submit" value="Register" /> </center> <td><input type="Reset"></td></tr> </table></form></div> </body> </html> <% %>