javaweb学生管理系统------注册页面的实现
程序员文章站
2022-06-03 13:14:39
...
<%@ 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="RegServlet" method="post" class="stuForm">
<h2>学生注册</h2>
学号:<input type="number" name="id" required="required" /><br/>
姓名:<input type="text" name="name" required="required" /><br/>
年龄:<input type="number" name="age" required="required" /><br/>
性别:<input type="radio" name="sex" value="男" checked="checked"/>男
<input type="radio" name="sex" value="女" />女<br/>
用户名:<input type="text" name="userName" style="width:125px;" required="required" /><br/>
密码:<input type="password" name="password" required="required" /><br/>
再次输入密码:<input type="password" name="password2" required="required" /><br/>
<c:if test="${!empty errorMsg}">
${errorMsg }
</c:if><br/>
<input type="submit" value="提交"/> <input type="reset" value="重置" />
<h2><a href="login.jsp">返回登录</a></h2>
</form>
</body>
</html>
上一篇: 如何使用php判断所处服务器操作系统的类型_PHP教程
下一篇: Java格式化输出之printf
推荐阅读