I have a jsp which will hit the database and get the data of the table Employee_details which eill have five columns Id,Name,Department,salary,Manager. The below jsp displaying the whole table but i want to add pagination to it.Can some one help regarding this
<%@page
import="com.symp.DbUtil" import="java.sql.*"%>
<html>
<head>
</head>
<body>
<%
Connection con;
DbUtil db;
db=new DbUtil();
con=db.getOracleConnection("oracle.jdbc.driver.OracleDriver",url,username,password);
System.out.println("connection is "+con);
Statement st=con.createStatement();
ResultSet resultset =
st.executeQuery("SELECT * FROM EMPLOYEE_DETAILS") ;
%>
<TABLE id="results" >
<TR>
<TH>EMPLOYEE_ID</TH>
<TH>Name</TH>
<TH>SALARY</TH>
<TH>DEPARTMENT</TH>
<TH>MANAGER</TH>
</TR>
<% while(resultset.next()){ %>
<TR>
<TD> <%= resultset.getString(1) %></td>
<TD> <%= resultset.getString(2) %></TD>
<TD> <%= resultset.getString(3) %></TD>
<TD> <%= resultset.getString(4) %></TD>
<TD> <%= resultset.getString(5) %></TD>
</TR>
<% } %>
</TABLE>