Hello struts-dev,

  I propose to add four classes to the framework -
   Pager - to store data about paging
   PagerIterator - to iterate via links
   PagerEntry - to represent link to the page
   PagerTag - to use Pager in jsp pages.

  There are two scenarios of Pager using -
   1. create Pager in Action, store it in request and use early stored
      Pager object with PagerTag or standalone.
   2. set all needed parameters as attributes of PageContext and pass
      its to the PagerTag

  Pager take 3 parameters -
   1. pageSize
   2. offset
   3. totalSize
  and allow to get iterator (PagerIterator) via secuence of links
  (PagerEntry) to the pages.
-- 
Best regards,
 Oleg                          mailto:[EMAIL PROTECTED]


Reply via email to