Hi Guido, I had bad time with paginated in web application. I think it's
more appropriate to Swing/AWT apps. I'm simply using
queryForList(statement, paramObj, (pageNumber * pageSize), pageSize).

Leo.


-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 18 de mar�o de 2005 08:13
Para: [email protected]
Assunto: PaginatedList & 'google like' results


Hi,

I am using ibatis PaginatedList functionality for paging through search
results, 
and I would like to add the ability for a user to go to the last page of
the results 
(something like Google results) instead of having to page through big
result sets as it is done in JPetStore4:

  <logic:notEqual name="orderBean" property="orderList.firstPage"
value="true" >
    <a href="switchOrderPage.shtml?pageDirection=previous">PREV</a>
  </logic:notEqual>
  <logic:notEqual name="orderBean" property="orderList.lastPage"
value="true" >
    <a href="switchOrderPage.shtml?pageDirection=next">NEXT</a>
  </logic:notEqual>

Is this possible or should I do two queries (my actual "select fields
from..." 
and a new "select count(*) from...") to achieve it?

Thank you very much,
Guido.

-- 
Guido Garc�a Bernardo - [EMAIL PROTECTED]
Tfn. +34 983 54 89 08
ITDEUSTO - Valladolid

Reply via email to