登录页面代码
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>学生管理系统登录</title> <script type="text/javascript"> function resetValue(){ document.getElementById("userName").value=""; document.getElementById("password").value=""; } </script> </head> <body> <div> <form action="login" method="post"> <table background="images/login.jpg" > <tr> <td></td> </tr> <tr> <td></td> <td>用户名:</td> <td><input type="text" value="${userName }"></td> <td></td> </tr> <tr> <td></td> <td>密 码:</td> <td><input type="password" value="${password }"></td> <td></td> </tr> <tr> <td></td> <td><input type="submit" value="登录"></td> <td><input type="button" value="重置"></td> <td></td> </tr> <tr> <td></td> <td colspan="3"> <font color="red">${error } </font> </td> </tr> <tr> <td></td> </tr> </table> </form> </div> </body> </html>2017/10/19 18:19:03 项目练习来源于