price44.95/price
publish_date2000-10-01/publish_date
descriptionAn in-depth look at creating applications
with XML./description
/book
book id="bk102"
authorRalls, Kim/author
titleMidnight Rain/title
genreFantasy/genre
price5.95/price
publish_date2000-12-16/publish_date
descriptionA former architect battles corporate zombies,
an evil sorceress, and her own childhood to bee queen
of the world./description
/book
book id="bk103"
authorCorets, Eva/author
titleMaeve Ascendant/title
genreFantasy/genre
price5.95/price
publish_date2000-11-17/publish_date
descriptionAfter the collapse of a nanotechnology
society in England, the young survivors lay the
foundation for a new society./description
/book
book id="bk104"
authorCorets, Eva/author
titleOberon's Legacy/title
genreFantasy/genre
price5.95/price
publish_date2001-03-10/publish_date
descriptionIn post-apocalypse England, the mysterious
agent known only as Oberon helps to create a new life
for the inhabitants of London. Sequel to Maeve
Ascendant./description
/book
book id="bk105"
authorCorets, Eva/author
titleThe Sundered Grail/title
genreFantasy/genre
price5.95/price
publish_date2001-09-10/publish_date
descriptionThe o daughters of Maeve, half-sisters,
battle one another for control of England. Sequel to
Oberon's Legacy./description
/book
book id="bk106"
authorRandall, Cynthia/author
titleLover Birds/title
genreRomance/genre
price4.95/price
publish_date2000-09-02/publish_date
descriptionWhen Carla meets Paul at an ornithology
conference, tempers fly as feathers get ruffled./description
/book
book id="bk107"
authorThurman, Paula/author
titleSplish Splash/title
genreRomance/genre
price4.95/price
publish_date2000-11-02/publish_date
descriptionA deep sea diver finds true love enty
thousand leagues beneath the sea./description
/book
book id="bk108"
authorKnorr, Stefan/author
titleCreepy Crawlies/title
genreHorror/genre
price4.95/price
publish_date2000-12-06/publish_date
descriptionAn anthology of horror stories about roaches,
centipedes, scorpions and other insects./description
/book
/catalog
/xml
table id="mytable" datasrc="http://img.readke.com/231128/050U62K8-0.jpg" border=1 DATAPAGESIZE="2"
theadthTitle/ththAuthor/ththGenre/ththPublish Date/ththPrice/th/thead
tbodytr
tdspan datafld="title"/span/td
tdspan datafld="author"/span/td
tdspan datafld="genre"/span/td
tdspan datafld="publish_date"/span/td
tdspan datafld="price"/span/td
/tr
/tbody
/table
input type=button value="https://www.04ip.com/post/previous page" onclick="mytable.previousPage()"
input type=button value="https://www.04ip.com/post/next page" onclick="mytable.nextPage()"
/body
/
------------------------------------
分页显示的模板程序
!--show_page.jsp--
%@ page import="javang.*" import="java.sql.*" import="java.util.*" contentType="text/;charset=GB2312"%
%@ page import="tax.*"%
jsp:useBean id="RegisterBean" class="tax.RegisterBean" scope="page"/
jsp:useBean id="itemlist" class="tax.itemlist" scope="page"/
%
int PageSize = 10;设置一页显示的记录数
int PageNum = 1; 初始化页码=1
int PageNumCount = (136+PageSize-1) / PageSize;记算总页数
计算要显示的页码
String strPageNum = request.getParameter("page");取得href提交的页码
if(strPageNum==null){ 表明在QueryString中没有page这一个参数,此时显示第一页数据
推荐阅读
- 直播间常见的直播设备,直播间常见的直播设备有哪些
- 发游戏视频什么平台好些,游戏短视频发哪个平台好
- 恋爱单机养成类游戏有配音,单机恋爱养成手游
- 抖音直播怎么闪退,抖音直播闪退的原因
- C语言delta函数 c语言中delta怎么用
- ios天窗壁纸的简单介绍
- 升格拍摄与延时拍摄有什么区别,升格拍摄与延时拍摄有什么区别呢
- 如何做好珠宝新媒体运营,如何做好珠宝新媒体运营工作
- 包含vb.net查询超时的词条