您的位置:首页 > 编程语言 > Java开发

javaweb学生管理系统------登录页面的实现

2020-07-17 12:12 141 查看
<%@ 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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐