?? listperson.jsp
字號(hào):
<%@ page contentType="text/html; charset=GBK"%>
<!-- 以分頁(yè)方式顯示人物信息 -->
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/tlds/page.tld" prefix="page"%>
<html>
<head>
<title>分頁(yè)示例</title>
<base href="http://localhost:8080/PageDemo/" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<html:form action="person" onsubmit="return check();">
<input type="hidden" name="method" value="toList" />
<table border="1" class="dataList">
<tr>
<th width="10%">
編號(hào)
</th>
<th width="20%">
姓名
</th>
<th width="10%">
年齡
</th>
<th width="40%">
住址
</th>
<th width="20%">
部門
</th>
</tr>
<!-- 循環(huán)顯示集合數(shù)據(jù) -->
<c:forEach items="${personForm.pageResult.list}" var="p">
<tr onmouseover="this.bgColor='#c0c0c0';" onmouseout="this.bgColor='#ffffff';">
<td>
${p.id}
</td>
<td>
${p.name}
</td>
<td>
${p.age}
</td>
<td>
${p.address}
</td>
<td>
${p.department.deptName}
</td>
</tr>
</c:forEach>
</table>
<page:link formName="personForm"/>
</html:form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -