get data from html to servlet
hi,
i'm trying to get username (String) and password (String) from html Login page to Servlet, so that i can check the username in db. But i dunno how to use the username in servlet. so, dear experienced guys, pls give a clue.
this is the login page code snippet:
<table>
<tr>
<td>Username: </td>
<td><input name="username" type="text" size="40"></input></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="password" type="password" size="40"></input></td>
</tr>
<tr><td>
<button value="Enter" onClick="location.href='http://111.111.11.111:8080/example/Application.html'">
Enter SMD
</button>
</td></tr>
</table>
thanks in advance, lema