-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddStu.jsp
More file actions
27 lines (23 loc) · 857 Bytes
/
Copy pathAddStu.jsp
File metadata and controls
27 lines (23 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>增加学生</title>
</head>
<body>
<form action="Add.action" method="post">
姓  名:<input type="text" name="name" /> <br> <br>
年  龄:<input type="text" name="age" /> <br> <br>
学  号:<input type="text" name="sno" /> <br> <br>
性  别:<input type="text" name="sex" /> <br> <br>
手机号码:<input type="text" name="Tel" /> <br> <br>
    <input type="submit" name="Add" value="增加学生" />
</form>
</body>
</html>