• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to show only 10 entries in a jsp-page?

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you want to achieve is called "Pagination" and we have a beautiful link for this:
http://faq.javaranch.com/java/PaginationOrPaging
 
Greenhorn
Posts: 18
Android
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
you can use this simple and elegant tool: display tag. follow their example and you will see how easy it is. good luck

http://displaytag.sourceforge.net/1.2/
 
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Gabriela Cristian wrote:Hello
you can use this simple and elegant tool: display tag. follow their example and you will see how easy it is. good luck

http://displaytag.sourceforge.net/1.2/



yes display tag will make it very simple.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

thank you for your answer.
I tried it wiht displaytag-library, but it didn't work:

I write this code on my jsp-page


In this code, my table name is "lieferanten". But i got an error on TestList(10, false) (is red underlined)!
when pointing the mouse on it, it show: "TestList can't be resolved to a type"!!
Ans the tag "display:table" is yellow underlined on <display:table name="lieferanten" />
 
reply
    Bookmark Topic Watch Topic
  • New Topic