File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Gabriela Cristian
Greenhorn
Posts: 18
Android
  • 0
  • Mark post as helpful
  • send pies
  • 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/
 
Prashant Saraf
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Gerry Mueller
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • 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" />
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic