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

DisplayTag pagination: "next/last " link does not work

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear members,
I am displaying table data using displaytag where i define pagesize=15

the struts action that i use (along with the appended parameters) is: showAllTheArticle.action?user.id=1&user.username=admin

the table shows the first 15 record nicely, but when i click on the next/last links- the following hyperlink generates:

pages/AllTheArticle.jsp?d-49309-p=2&user.id=1&user.username=admin
- and the next page shows : Nothing Found to Display , though there are still records to show.

I know there are other options except displayTag, but I have to use it.

so could anyone please tell me what change do i need to make?

Thanks in advance :-)
 
Shajid Johnny
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is my ugly photo attached here & thats why people are just visiting by but not feeling interested to show me some light??
i am really upset :-(
 
Rancher
Posts: 1337
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no need to be upset. Nobody who uses DisplayTag may have seen this topic; the library isn't that widely used, after all.

I'd look into why the URLs for the first and second page are different; is that how it's supposed to be? ("showAllTheArticle.action" vs. "pages/AllTheArticle.jsp")
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm with Lester. Display tag is putting the path to your JSP, so the JSP is called directly, without calling your struts action. Try adding requestURI="" attribute in the display table definition
reply
    Bookmark Topic Watch Topic
  • New Topic