• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying records  RSS feed

 
R Kiran
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem in displaying records fetched through search.

My problem is, I have a search in my application.I have to display fetched records 10 by 10 or 20 by 20 and so on when user clicks Next>>. Same as like any mail list.

i am not getting any idea how to resolve my problem.

If any one help me in this regards,i will be very glad.

Regards
Kiran
 
Milan Jagatiya
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by R Kiran:

My problem is, I have a search in my application.I have to display fetched records 10 by 10 or 20 by 20 and so on when user clicks Next>>. Same as like any mail list.


its called "Paging".
you can use JSTL tags for paging. are you using JSP or servlets only in your application???
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to this paging on Javaranch

or you would find more and more example on paging by googling..
 
R Kiran
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your reply.
I am just using only Servlets and JSP's
And I don't have knowledge of Struts.
Is there any other way
 
Milan Jagatiya
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wrap your search result in collection (List) and retrieve specific number of records.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by R Kiran:
Is there any other way


have you seen the above suggested link. I have found that example best for the paging.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!