Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page navigation using struts2

 
Vasanth Rajasekaran
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement where i need to fetch a group of datas from database and display them in the form of table in jsp.

I have to display them in such a way that I need to display first ten of them in a page and I have to give page nos like 1,2,3... under the page.

Suppose if user clicks on 1 first ten datas will be displayed. If user clicks 2 next ten datas will be displayed and so on.

These page numbers must be invoked dynamically.

(Just like in our google search results page)

I'm able to achieve in displaying first ten datas. How to display the remaining???

My code snippet is:

My java function is




My JSP code is:



Can anyone help me???

Thanks in advance...
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hope this would help you
http://www.servletsuite.com/tips/grid1.htm
www.displaytag.org
 
Vasanth Rajasekaran
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks debraj mallick for your suggestion.. But I don have taglib122.tld ... Where do i get that???
 
Vasanth Rajasekaran
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi debraj mallick,

I got the two tld files you mentioned... Now where I have to put these tlds in my project so that i can use them in my code.

I am using Eclipse europa and I am developing my project as a Dynamic-web project...

Please help me.

thanks
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use
http://displaytag.sourceforge.net/11/install.html
tutorial:
http://displaytag.sourceforge.net/11/tut_basic.html
or google to get the tutorials
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic