<%@ taglib uri="/WEB-INF/lib/pagertaglib.tld" prefix="pg" %>
<pg:pager export="currentPageNumber=pageNumber">
<pg:item>
my search data..
</pg:item>
<pg:index>
<pg:pages><%
if (pageNumber.intValue() < 10) {
%>&nbsp;<%
}
if (pageNumber == currentPageNumber) {
%><b><%= pageNumber %></b><%
} else {
%><a href="<%= pageUrl %>"><%= pageNumber %></a><%
}
%>
</pg:pages>
</pg:index>
</pg:pager>

This is the code i typed and i get errors in jsp saying pageNumber and currentPageNumber cannot be resolved..... please guide me what went wrong and how can i solve...

the above errors are resolved... 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........

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.