This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.

Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pager Tags Newbie  RSS feed

kengyiam Ng
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!