I. Preparation before operation
Downloaded the MySQL JDBC driver (a jar file) and loaded it in classpath (see "One of the Java/jsp Learning Series (JDK installation)")
(If not found, please download from this site)
Build a MySQL database test
There is a table in the database: note, field: name (varchar)
Second, download, install
Intpagecount) intpage = Intpagecount;
%>
Name
0)
{
Position the record pointer on the first record of the page you want to display
Sqlrst.absolute ((intPage-1) * intpagesize + 1);
Show data
i = 0;
while (i
Page Total Page
"> Next page
1) {%> "> previous page
Third, how to run?
(Source: viphot.com)
http://www.bkjia.com/PHPjc/313974.html www.bkjia.com true http://www.bkjia.com/PHPjc/313974.html techarticle First , ready to download the MySQL JDBC driver (a jar file) and load in the classpath (see "One of the Java/jsp Learning Series (JDK installation)") (if not found, please download from this site ...)