• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Pagination problem

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am doing pagination with in webapplication(with servlets and jsp).I am using pager-taglib.jar and pager-taglib.tld.In jsp I am able to display all records.I am setting paging with 3 rows per page.But I have been getting problem with Query String.

In Jsp page for paging there are available 1,2,3,4,5 (links) page numbers.When I click on one page number(eg: 2) the url will be come like "http://localhost:7001/WebPoolSriWeb/RequestDetails?empNo=7934&no_of_rows=AllRows?pager.offset=3"
In this url I ma getting two query strings(1. "empNo=7934&no_of_rows=AllRows"
2."?pager.offset=3").
Here offset is automatically generated from tag library.

But when I gave url manually like: "http://localhost:7001/WebPoolSriWeb/RequestDetails?empNo=7934&no_of_rows=AllRows?pager.offset=3" the records are displaying as per page(as my requirement).

In this concern I am not able to get URL when I click on page number link.

thanks in advance....
 
Sri Dharan
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry I have posted query again with correction
-------------------------------------------------
Hi,
I am doing pagination with in webapplication(with servlets and jsp).I am using pager-taglib.jar and pager-taglib.tld.In jsp I am able to display all records.I am setting paging with 3 rows per page.But I have been getting problem with Query String.

In Jsp page for paging there are available 1,2,3,4,5 (links) page numbers.When I click on one page number(eg: 2) the url will be come like "http://localhost:7001/WebPoolSriWeb/RequestDetails?empNo=7934&no_of_rows=AllRows?pager.offset=3"
In this url I ma getting two query strings(1. "empNo=7934&no_of_rows=AllRows"
2."?pager.offset=3").
Here offset is automatically generated from tag library.

But when I gave url manually like: "http://localhost:7001/WebPoolSriWeb/RequestDetails?empNo=7934&no_of_rows=AllRows&pager.offset=3" the records are displaying as per page(as my requirement).

In this concern I am not able to get URL when I click on page number link.

thanks in advance....
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

Although you've technically posted this in the correct forum, I think you'll get more responses over in the JSP forum, so I'll move it over there for you.
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Martijn incorrectly moved this post. Open source libraries have their own forum. Moving again,
 
a wee bit from the empire
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic