同時轉換成一個 int 類型的頁碼變量
int currentPage = Integer
request
上一頁 listuser
int pageSize =
dao
int totalCount = executeQuery(
dao
// 得到頁面總數
int totalPageCount = ((totalCount + pageSize)
if(totalPageCount ==
totalPageCount =
}
dao
兩個參數
pageSize 取多少數據
String queryString =
Query queryObject = getSession()
queryObject
queryObject
List result = queryObject
時間
<c:if test=
[ 上一頁的鏈接 ]
</c:if>
<c:if test=
[ 上一頁的文本 ]
</c:if>
<c:forEach items=
${user
${user
<c:/forEach>
轉到
<script>
// 頁面跳轉函數
// 參數
function jumpPage(select) {
var newUrl =
//alert(newUrl)
document
}
</script>
<!
<select onchange=
<option value=
<option value=
</select>
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28622.html