*
The moose likes JDBC and the fly likes How to show only 10 entries in a jsp-page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to show only 10 entries in a jsp-page?" Watch "How to show only 10 entries in a jsp-page?" New topic
Author

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

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

What you want to achieve is called "Pagination" and we have a beautiful link for this:
http://faq.javaranch.com/java/PaginationOrPaging


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Gabriela Cristian
Greenhorn

Joined: Dec 02, 2008
Posts: 18

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

Joined: Sep 25, 2006
Posts: 52

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

Joined: Dec 30, 2009
Posts: 17
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" />
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to show only 10 entries in a jsp-page?
 
Similar Threads
sectioning a recordset using jsp
Simple Command MVC webapp
How to design my application
Display JSP results in more than one screen with time gap
Help ...Dynamic Drop Down list