<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="Bean.Bean1" %>
<%@ page import="Dao.Dao1" %>
<%@ page import="Util.Util1" %>
<%@ page import="java.sql.*" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>浏览结果</title>
</head>
<body>
<title>社团活动浏览</title>
</head>
<body>
<div align="center">
<form name="form" method="post" action="Screen.jsp">
<input type="submit" value="返回主页">
</form>
<table align="center" border="1" width="500">
<tr>
<th>活动主题</th>
<th>活动目的</th>
<th>活动类型</th>
<th>活动时间</th>
<th>活动地点</th>
<th>对象</th>
<th>活动内容</th>
<th>活动安排</th>
</tr>
<%
List<Bean1> list =(List<Bean1>)request.getAttribute("Bean");
int i=list.size();
for(int k=0;k<i;k++)
{out.print("<tr>");
Bean1 p=list.get(k);
out.println("<td>"+p.getZhuti()+"</td>"+"<td>"+p.getMudi()+"</td>"+"<td>"+p.getLeixing()+"</td>"+
"<td>"+p.getShijian()+"</td>"+"<td>"+p.getDidian()+"</td>"+"<td>"+p.getDuixiang()+"</td>"+"<td>"+p.getNeirong()+"</td>"+"<td>"+p.getAnpai()+"</td>");
out.print("</tr>");
out.print("<br>");
%>
<p>
<%
}
%>
</table>
</body>
</html>
修改的如下:



浙公网安备 33010602011771号