?? show.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.*,bean.*;" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>顯示輸出</title>
</head>
<%
ArrayList personlist=(ArrayList)request.getAttribute("personlist");
%>
<body bgcolor="#CC3300">
<table align="center" width="300" border="1" bgcolor="#99FFFF">
<%for(int i=0;i<personlist.size();i++)
{
PersonBean pb=(PersonBean)personlist.get(i);
%>
<tr>
<td>編號</td>
<td>姓名</td>
<td>年齡</td>
<td>性別</td>
<td>電話</td>
</tr>
<tr>
<td><%=pb.getNum()%></td>
<td><%=pb.getName()%></td>
<td><%=pb.getAge()%></td>
<td><%=pb.getSex()%></td>
<td><%=pb.getTele()%></td>
</tr>
<%}%>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -