This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes Pager Tags Newbie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Pager Tags Newbie" Watch "Pager Tags Newbie" New topic

Pager Tags Newbie

kengyiam Ng

Joined: Aug 28, 2003
Posts: 7
Dear all,
I have read the Pager Tags example but still could not even get the output that I want when I use the example code with my database extraction in the Pager Tags documentation?
My sample code is as below:
__________________________________________________<%@ page language="java"
<%@ taglib uri="" prefix="pg" %>
<pg ager>
<pg aram name="keywords"/>
ConnectDB connDB = new ConnectDB();
Statement stmt = connDB.getConnect();
ResultSet rs = stmt.executeQuery("SELECT Make FROM Make ORDER BY Make");
<% while({ %>
<%= rs.getObject(1).toString() %>
<% } %>
<a href="<%= pageUrl %>">[ (<%= pageNumber %> |< Previous ]</a>
<pg rev>
<a href="<%= pageUrl %>">[ (<%= pageNumber %> << Previous ]</a>
</pg rev>
<pg ages>
<a href="<%= pageUrl %>"><%= pageNumber %></a>
</pg ages>
<a href="<%= pageUrl %>">[ Next >> (<%= pageNumber %> ]</a>
<a href="<%= pageUrl %>">[ Last >| (<%= pageNumber %> ]</a>
</pg ager>
Can you please kindly tell me where my mistake is?
Thanks alot,
Warmest regards,
I agree. Here's the link:
subject: Pager Tags Newbie
It's not a secret anymore!