// c
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="po.Student"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'queryForm.jsp' starting page</title>
</head>
<body>
show result.<br>
<%
ArrayList stus = (ArrayList)request.getAttribute("stus");
%>
<table bgcolor="#ff80ff">
<tr>
<td>ѧۅ</td>
<td>ѕĻ</td>
<td>єҰ</td>
<td>ԶʺŪՂ</td>
<td>ݒͥסַ</td>
</tr>
<%
for(int i=0;i<stus.size();i++){
Student stu = (Student)stus.get(i);
%>
<tr>
<td><%=stu.getStuId() %></td>
<td><%=stu.getStuName() %></td>
<td><%=stu.getStuSex() %></td>
<td><%=stu.getStuBir() %></td>
<td><%=stu.getStuAdd() %></td>
</tr>
<%
}
%>
</table>
</body>
</html>
// -- c