1. Preparation before operation
Download the jdbc driver of mysql (a jar file) and load it in CLASSPATH (see "JAVA/JSP Learning Series One (JDK Installation)" for the method)
( If you can’t find it, please download it from this site)
Build a MySQL database test
There is a table in the database: note, the field is: name (varchar)
2 , download, install
intPageCount) intPage = intPageCount;
%>
Name
0)
{
//Position the record pointer to the first record of the page to be displayed
sqlRst.absolute((intPage-1) * intPageSize + 1);
//Display data
i = 0;
while(i
Page of Pages
">Next Page
1){%>">Previous page
3. How to run it?
(Source: viphot.com)