I am using display tag in portals(Struts Portal Framework) deployed in websphere portal, using external paging using value list paging (implement PaginatedList) a strong exception has shown up
java.lang.ArithmeticException: divide by zero
in the following lines:
int pageCount = behavioursPaginatedList.getFullListSize() / Math.max(1,behavioursPaginatedList.getObjectsPerPage());
if ((behavioursPaginatedList.getFullListSize() % behavioursPaginatedList.getObjectsPerPage()) > 0)
{
pageCount++;
}
FullListSize = 13
ObjectPerPage = 4