File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Page navigation using struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Page navigation using struts2" Watch "Page navigation using struts2" New topic
Author

Page navigation using struts2

Vasanth Rajasekaran
Greenhorn

Joined: Mar 01, 2012
Posts: 7
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

Joined: Mar 08, 2011
Posts: 188

hope this would help you
http://www.servletsuite.com/tips/grid1.htm
www.displaytag.org
Vasanth Rajasekaran
Greenhorn

Joined: Mar 01, 2012
Posts: 7
Thanks debraj mallick for your suggestion.. But I don have taglib122.tld ... Where do i get that???
Vasanth Rajasekaran
Greenhorn

Joined: Mar 01, 2012
Posts: 7
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

Joined: Mar 08, 2011
Posts: 188

you can download it from
http://displaytag.sourceforge.net/11/download.html
or
http://www.findjar.com/index.x?query=taglib
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Page navigation using struts2