Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 nd page / Next link - ' Nothing found to display' in DisplayTag

 
Guttu Stand
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I got 26 records selected from Database, I use Display Tag to display the records as table in my JSP.The issue is I can see the first 20 records on page 1 , but when I click the page 2 or 'Next' option, It says. ' Nothing found to display.'

I use Eclipse and Display tag is ' displaytag-1.2'

Here is the following code

<%

ArrayList list = (ArrayList) request.getAttribute("ListFromBean");

session.setAttribute( "thelist", list);
%>
<display:table name="sessionScope.thelist" pagesize="20">
<display:column property="Name" title="Name" />
<display:column property="School" title="School" />
<display:column property="Location" title="Location" />
<display:column property="Town" title="Town" />
</display:table>


 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gutu and welcome to Javaranch! I'd recommend searching this forum and the Struts forum to see if a similar question has been answered before.
 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you find a solution to your problem?

I have a very similar problem

I use struts2 to make the list for the display tag. Every now and then it says "nothing found to display"
I hit refresh and it works fine.

Any ideas?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic