These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: ..help with JSP Pagination using hibernate
PostPosted: Wed Sep 21, 2005 9:26 pm 
Beginner
Beginner

Joined: Fri Jun 10, 2005 11:51 pm
Posts: 45
Pagination such that like google search results like:

1 2 3 4 5 6 7 8 9 Next

when you click 2 it will display second 10 result from the database and so on...if you can provide an example much better..tnx..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 21, 2005 11:31 pm 
Regular
Regular

Joined: Sat Aug 28, 2004 4:15 pm
Posts: 61
You can specify the maxResults and the firstResult on a Query object. This capability support pagination quite well.

This has been discussed several times and there is even a wiki page to start helping you think through this a little more.

Do a search on this forum for "pagination".

Look at this wiki page: http://www.hibernate.org/314.html

Also, do a google search for tag libraries that help with this kind of stuff.


JOe

_________________
Joe W


Top
 Profile  
 
 Post subject: ...help to pagination..can someone give me a code
PostPosted: Mon Oct 31, 2005 2:55 am 
Beginner
Beginner

Joined: Fri Jun 10, 2005 11:51 pm
Posts: 45
....can someome give a running pagination code using hibernate and JSP...i been trying so many taglibraries but i cannot get what they trying to say in the tutorials...just a simple program would do and i just modify it to suit my project in school..tnx a lot...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.