login.jsp page:
<%@ page language= "java" import= "java.util.*" contenttype= "text/html"; Charset=utf-8 "
%>
<% @page import= "java.text.*"%>
<%
String path = Request.getcontextpath ();
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>insert title here</title>
<body>
< submit data by URL!--plaintext--
<form action= "dologin.jsp" name= "LoginForm" method= "Get" >
<!--wrap the submitted data in the HTML header, and then submit--
<form action= "dologin.jsp" name= "LoginForm" method= "POST" >
<table>
<tr>
<td> User name:</td>
<td><input type= "text" name= "username"/></td>
</tr>
<tr>
<td> Password:</td>
<td><input type= "password" name= "password"/></td>
</tr>
<tr>
<TD colspan= "8" ><input type= "submit" name= "Login"/></td>
</tr>
</table>
</form>
</body>
dologin.jsp page:
<body>
</body>
Use the Get method:
Use the Post method:
User Login Page