1、表单页面 ---login.jsp
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<%@ page contentType="text/html;charset=GB2312" %>
<html>
<head>
<title>用户登录页面</title>
</head>
<body>
<form action="check.jsp" method="post">
<table>
<tr>
<td>用户名ID:</td>
<td><input type="text" name="userid"></td>
</tr>
<tr>
<td>密码:</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td><input type="submit" value="提交"></td>
<td><input type="reset" value="重置"></td>