<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!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>Insert title here</title>
<style>
.stuForm{
width:250px;
height:250px;
margin: auto;
margin-top:15%;
}
a{
text-decoration: none;
}
</style>
</head>
<body>
<form action="LoginServlet" method="post" class="stuForm">
<h2>学生登录</h2>
学号:<input type="number" name="id" required="required" /><br/>
用户名:<input type="text" name="userName" style="width:125px;" required="required" /><br/>
密码:<input type="password" name="password" required="required" /><br/>
<!-- 提示信息 -->
<c:if test="${!empty errorMsg}">
${errorMsg }
</c:if><br/>
<input type="submit" value="提交"/> <input type="reset" value="重置" /> <a href="Register.jsp">注册</a>
</form>
</body>
</html>
javaweb学生管理系统------登录页面的实现
最新推荐文章于 2024-04-18 08:54:53 发布