Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Pagging in JSP

 
Antriksh Verma
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fellas ..

Please suggest me how to implement paging in JSP.

I tried to implement display tag .. since im very new in using it ,iam not getting how to start with it .I mean to say when i fetch records from database , how should i connect to display tags.
Whats the role of JSTL in it ..is display tag is part of JSTL.

A good tutorial or some example may help me out . Which tags to use in starting of JSP file n Why ? Assume iam a starter to JSTL & display tags. Please help me out !!

Regards
Antriksh
 
Antriksh Verma
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

one more thing about display tag , after downloading displaytag-1.2-bin from [As most of peoples suggest display tags is best solution to paggination!! ]

Document address me that , in bin will include following files :
displaytag.jar , displaytag.tld , displaytag.war

but displaytag.tld is missing , how will i implement the same

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Antriksh Verma wrote:A good tutorial or some example may help me out .


Generally Paging needs your own logic .i am not sure about display tag . i done paging(i restrict the data using DB query) in my project and page navigation and all depends on your requirement(you need to put your logic here, beleive me , it is intresting ) .

Look this article
 
Hs Arun
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the article, really intresting

 
Antriksh Verma
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks seetharaman venkatasamy .

But please have a look on
http://displaytag.sourceforge.net/1.2/

Its something .. more good and provides high-level web presentation patterns .
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Antriksh Verma wrote:

Its something .. more good and provides high-level web presentation patterns .


I agree, But do you really need that much of facility in paging ? because, I started with display tag, but didn't succeed in implementing it. So I just refer this forum, I found this good thing to start. And it's fun when you implement all the backend-front end things by doing it with basic and core technology, like EL...
 
Antriksh Verma
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.. Quite good link seetharaman venkatasamy .

Any Example of same [paggination] will be of great help to me .


 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont you try pager-taglib , its a open source and it is very easy to implement
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic