1 <%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
 2 <!doctype html>
 3 <html>
 4     <head>
 5         <title>login</title>
 6         <meta http-equiv="content-type" comtent="text/html;charset=utf-8"/>
 7     </head>
 8     <body>
 9         <h1><font color="red">欢迎</font></h1>
10         <form action="loginCheck.jsp" method="get">
11             <table>
12                 <tr>
13                     <td>用户名:</td>
14                     <td><input type="text" name="name" value=
15                     "<%=request.getParameter("name")%>" /></td>
16                 </tr>
17                 <tr>
18                     <td>密码:</td>
19                     <td><input type="password" name="password"/></td>
20                 </tr>
21                 <tr>
22                     <td><input type="submit" value="登录"/></td>
23                 </tr>
24             </table>
25         </form>
26     </body>
27 </html>
View Code

相关文章: