Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Struts
Pagination Problem using displayTag 1.2
Dushyant Chhetri
Ranch Hand
Posts: 75
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I am trying to use pagination to display a grid view where multiple entries need to be displayed. Now the problem is the page size is coming as desired but when i hit the next the entries vanish and " NO RECORD TO DISPLAY IS DISPLAYED"
<display:table id="data" export="true" name="userList" decorator="com.grid.test.ActorDecorator" defaultsort="3" defaultorder="ascending" pagesize="10" > <display:setProperty name="paging.banner.placement" value="both" /> <display:column property="tvShow" title="TV Show"/> <display:column title="static value">static</display:column> <display:column property="userName" title="User Name" /> <display:column title="row number (testit_rowNum)"><%=pageContext.getAttribute("testit_rowNum")%></display:column> <display:column property="emailId" title="Email Id" /> </display:table>
userList is an arraylist of type
ArrayList<ActorData> userList = new ArrayList<ActorData>();
Please suggest where I am going wrong.
1.JPG
The output screen
2.JPG
On clicking the next button
Dushyant Chhetri
Ranch Hand
Posts: 75
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Solved it..
<jsp:scriptlet> request.setAttribute( "userList", new ActorData().loadData() ); </jsp:scriptlet>
had missed this small bit..
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Pagination using display tag and JSTL.Display problem
struts2 + display tags + maps
display tag pagination problem
pagination problem + struts1.3
pagination problem
More...