ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Help with Paginatedlist
Date Fri, 08 Apr 2005 08:42:03 GMT
You should store it in your Session. But the PaginatedList is for
simple usage. The other option is to simply use the
queryForList(String id, Object parameterObject, int skip, int max) and
then you simply store numbers in session rather than a list of


On Apr 7, 2005 8:49 PM, sai nukala <techsnuke2003@yahoo.com> wrote:
> I am having tough time with a simple usage of Paginated list. 
> I am using struts framework with Ibatis. 
> Very simple. 
> -Defined sql in SQL Map 
> -Created a DAO class to fetch and return PaginatedList. 
> - Page size:5 Resultset has 12 records 
> Only first 2 next() methods are returning 2 page lists. last 2 records in
> the third page list are not shown. Last.next() is showing only the second
> page list. But returns true indicating there is still one more page
> available next. 
> My question is: Once we return a paginated list with a page size -n, Is the
> resultset disconnected by fetching all the pages atonce or for every fetch,
> makes a database call?? 
> Can we store paginated list in the request/session scope and fetch
> previous/next pages? 
> thanks 
> ~snuke 
>  ________________________________
> Yahoo! Messenger
>  Show us what our next emoticon should look like. Join the fun. 

View raw message