• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with display tag

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,
when i trying to use pagesize attribute of the display:table tag
it finds how many pages are going to be there and displays the first page , but when i click on the page number or Next/Last links to move to next or last page , it shows
"Nothing found to Display"

This jsp page gets an ArrayList of Employee objects with some properties
which it shows nicely on my first page.
The flow is something like this

A servlet pulls up the data from the database and puts them into an ArrayList and then puts them onto request object using



i have tried , session.setAttribute just for trying if that works but no it doesnt.

on my jsp i use the display tag as follows:



cud somebody tell me what am i doing wrong?
-------------------------------------------

okay i tried creating another arraylist within the same jsp page and used the pagesize with the display tag now i had two display:table elements in my jsp one for the EMPLOYEELIST mentioned above and one the test arraylist i added , for the test arraylist paganation is working fine , the links are working . but for EMPLOYEELIST it still shows "Nothing Found"

i m using struts framework , and this jsp page is the view after a servlet action which creates and places the ArrayList in my request .
Thanks.


-Thanks.

[ November 23, 2007: Message edited by: prakash chauhan ]
[ November 23, 2007: Message edited by: prakash chauhan ]
 
prakash chauhan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All ,
Just in case somebody else faces this problem ,
i found the solution finally( after hell lot of hit and trial , ofcourse)
in the display table tag you must also provide the requestURI if the page you are displaying results on is a result of a forward


the above worked for me .
if i remove requestURI ="/updates.do" , the first page will show up but links for other pages will show "NOTHING FOUND TO DISPLAY" .


-thanks.
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic