编写一个学生注册的页面
<head>
<title>注册页面</title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap.bundle.js"></script>
<style>
.container{
width: 20%;
height: 20%;
margin-top: 10%;
}
</style>
</head>
<body>
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<form action="register.jsp" method="post">
用户名:<input type="text" name="username" class="form-control"><br>
密码:<input type="text" name="password" class="form-control"><br>
性别:<input type="text" name="gender" class="form-control"><br>
年龄:<input type="text" name="age" class="form-control"><br>
<button type="submit">注册</button>
</form>
</div>
</div>
</div>
</body>
注册成功提示页面
<jsp:useBean id="user" class="com.media.bean.userbean"></jsp:useBean>
<jsp:setProperty name="user" property="*"></jsp:setProperty>
<%
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/book";
Connection connection = DriverManager.getConnection(url,"root","root");
Statement stmt = connection.createStatement();
String sql = "inser into user(username,password,gender,age) valuse("+user.getUsername()+","+user.ge