title: java.lang.ArithmeticException: divide by zero in displaytag
body: <p>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 
  <code> java.lang.ArithmeticException: divide by zero
  </code> 
  in the following lines:</p>
  
  <pre><code>     int pageCount = behavioursPaginatedList.getFullListSize() /  Math.max(1,behavioursPaginatedList.getObjectsPerPage());
          if ((behavioursPaginatedList.getFullListSize() % behavioursPaginatedList.getObjectsPerPage()) &gt; 0)
      {
          pageCount++;
      }
  </code></pre>
  
  <p><br>
  FullListSize = 13<br>
  ObjectPerPage = 4<br></p>
  
  <hr>