my dog learned polymorphism
The moose likes Other Open Source Projects and the fly likes please help regarding pagination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "please help regarding pagination" Watch "please help regarding pagination" New topic

please help regarding pagination

gayatri umesh

Joined: Aug 26, 2009
Posts: 17
<%@ taglib uri="/WEB-INF/lib/pagertaglib.tld" prefix="pg" %>
<pg:pager export="currentPageNumber=pageNumber">
my search data..
if (pageNumber.intValue() < 10) {
%> <%
if (pageNumber == currentPageNumber) {
%><b><%= pageNumber %></b><%
} else {
%><a href="<%= pageUrl %>"><%= pageNumber %></a><%

When i run this on the server, it takes indefinite time to load... When i give stop loading current page, the first 10 results are displayed but the links to the next pages dont appear...... Kindly guide how to solve....I am using websphere application server 6.... working in rationl application developer........

I also tried using <pg:paging> tag

<%@ taglib uri="/WEB_INF/lib/pager-taglib.tld" prefix="pg"%>
<pg:paging pageSize="2">
my logic..</pg:item>

here, the results are displayed for the first page and the links for the next pages are displayed... but when i click on the link to any of the next pages, it says web page cannot be displayed and the error is:
Could not invoke service() method on servlet /styleDetails1.jsp
Exception thrown:java.lang.NullPointerException

Kindly help!!!
Jaydeep Mazumdar

Joined: Aug 26, 2009
Posts: 23
Can you briefly describe the problem that you are trying to solve?

Just the code by itself does not explain anything.
I agree. Here's the link:
subject: please help regarding pagination
It's not a secret anymore!