-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathshowstudent.jsp
65 lines (59 loc) · 1.74 KB
/
showstudent.jsp
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
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>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<c:if test="${not empty student }">
<table class="table table-hover table-condensed">
<tr>
<td align="center">
<strong>学号</strong>
</td>
<td align="center">
<strong>姓名</strong>
</td>
<td align="center">
<strong>系别</strong>
</td>
<td align="center" >
<strong>执行操作</strong>
</td>
</tr>
<tr>
<td>
<c:out value="${student.stId}" />
</td>
<td>
<c:out value="${student.stName}" />
</td>
<td>
<c:out value="${student.stDept}" />
</td>
<td>
<a href="stdelete?id=${student.stId}" class="btn btn-danger">删除</a>
<a href="pre?method=updateStudent&id=${student.stId}" class="btn btn-primary">更新</a>
</td>
</tr>
</table>
</c:if >
<c:if test="${empty student }">
<center><font color="red" size="+1">对不起!没有该学号对应的学生....</font></center>
</c:if>
<hr>
<a href="main.jsp" class="btn btn-success">返回主菜单</a>
<hr>
</body>
</html>