12345678910111213141516171819202122232425262728293031323334353637 |
- <%--
- Created by IntelliJ IDEA.
- User: x'b'w
- Date: 2021/5/14
- Time: 14:04
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%--查询--%>
- <%--删除--%>
- <html>
- <head>
- <title>链接数据库,获取来自数据库的数据</title>
- </head>
- <body>
- <table>
- <tr>
- <th>学号</th>
- <th>姓名</th>
- <th>操作</th>
- </tr>
- <%-- 输出查询语句--%>
- ${list}
- <c:forEach items="${list}" var="student">
- <tr>
- <td>${student.num}</td>
- <td>${student.name}</td>
- <td>
- <a href="student?method=delete&num=${student.num}">删除</a>
- <a href="student?method=findBynum&num=${student.num}">修改</a>
- </td>
- </tr>
- </c:forEach>
- </table>
- </body>
- </html>
|