<%@ 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) {
%> <%
}
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...