12345678910111213141516171819202122232425262728 |
- <%--
- Created by IntelliJ IDEA.
- User: x'b'w
- Date: 2021/5/22
- Time: 13:36
- 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>
- </tr>
- <c:forEach items="${list}" var="student">
- <tr>
- <td>${student.num}</td>
- <td>${student.name}</td>
- </tr>
- </c:forEach>
- </table>
- </body>
- </html>
|