• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Page navigation using struts2

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic