Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Login form using Access(JSP)....

843854Feb 22 2005 — edited Feb 22 2005
I have written the following code in JSP and connected to Access Database.
Aftre i run the JSP from browser the Login form is displayed. but aftre i enter the "userid" and "password" nothing hapens. the application is STUCK !!
<HTML>
<HEAD>
<TITLE> Login </TITLE>
<script language="Javascript">

function giveFocus()
{
	document.login.user.focus()
}
function submitForm()
{
	document.login.submit()
}
function resetForm()
{
	document.login.reset()
	document.passwd.reset()
	document.login.user.focus()
}
</script>
</HEAD>

<BODY onload="giveFocus()">
<form name="login" method="post" action="http://localhost//dcs/forward.jsp">
 <table border="0" cellpadding="2" cellspacing="0" width="80%"> <tr><td bgcolor="#ffffff" align="center">

<table border="0" cellspacing="6" cellpadding="6" bgcolor="ffffff" width="80%" height="280">
<tr bgcolor="#ADADAD">
<td align="center"><font face="Verdana" SIZE="5">LOGIN FOR DDM</font><br>

<table border=0 cellpadding=4 cellspacing=0>
<tr> <td align="right">
<P ALIGN="LEFT"><font face="Verdana" size="3"><BR>Please enter your ID and password

<table border=0 cellpadding=10 cellspacing=10>

<tr> 
	<td align="right" ><font face="Verdana" size="4">User Id   :</font></td>
	<td><font face="arial" size="-1"><b></b></font><input name="user" type="text" length="9" maxlength="9"></td>
</tr>
<tr> 
	<td align="right" ><font face="Verdana" size="4">Password  :</font></td>
	<td><input name="passwd" type="password" length="8" maxlength="8"></td>
</tr>
<tr>
	
	<td align=center valign=bottom>
	<input type="submit" name="login" value="     LOGIN     "  ></td>
<td align=center valign=bottom><input type="button" name="cancel" value="   Cancel    " ></td>
<td align=center valign=bottom><input type="submit"  name="chgp" value="Change Password"></td>
</tr>
</table>
</table>
</table>
</table>
 </form> 
</body>
</html> 
Kindly tell me wht is the problem with the code ? ? ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2005
Added on Feb 22 2005
4 comments
136 views