finding details in database using JSP and forwards user to a HTML page
The following HTML displays a form prompting the user to enter a username and a password. On clicking on the Login button, Logon.jsp is called.
I need to write the code for Logon.jsp, which reads in the userís name and password and checks if this is contained in a database table called registrations.
If a match is found the user is allowed access to an HTML page called MyHomePage.html, if a match is not found a page stating access denied is displayed.
<p><center>Please enter your username and password</center></p>
<form action = "http://localhost:8080/examples/Logon.jsp"
method = "get">
<center> username <input type ="text" name = "username"></center><br>
<center> password <input type ="password" name = "password"> </center><br>
<center><input type ="submit" name = "submit" value = " Login"> </center>