<%@ 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>
</head>
<body>
<table align="center" width="40%" border="1">
<tr>
<td>用户ID</td> <td>用户名:</td> <td>密码:</td>
</tr>
<c:forEach var="user" items="${userList}">
<tr>
<td>${user.userId }</td><td>${user.username }</td><td>${user.password }</td>
</tr>
</c:forEach>
</table>
</body>
</html>
时间: 2024-09-11 12:04:49