123456789101112131415161718192021222324252627282930313233343536373839 |
- <%@ page import="java.util.List" %>
- <%@ page import="com.xbw.java.Person" %><%--
- Created by IntelliJ IDEA.
- User: x'b'w
- Date: 2021/5/22
- Time: 11:27
- 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</title>
- </head>
- <body>
- <tr>
- <th>编号</th>
- <th>姓名</th>
- </tr>
- <%
- List<Person> list =(List<Person>) request.getAttribute("list");
- for (Person person : list){
- request.setAttribute("person",person);
- %>
- <tr>
- <td>${person.no}</td>
- <td>${person.name}</td>
- </tr>
- <%
- }
- %>
- </body>
- </html>
|