Next /Last option is not working in displaytag pagination


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Next /Last option is not working in displaytag pagination

  1. #1
    Join Date
    Aug 2008
    Posts
    36

    Next /Last option is not working in displaytag pagination

    Hi,
    we are using displaytag for the pagination in a struts application. The issue we are facing is when the result found it shows the no of records found as 26, and we have given limitation to display only 15 per page. When i try to click on next/last option available it shows the nothing found to display.

    Please suggest me what Iam missing in this.

    Code used in jsp is as below:
    Code:
            List requestList = new ArrayList();
    	if (request.getAttribute("requestList") != null) {
    		requestList = (List) request.getAttribute("requestList");
    		session.setAttribute("requestList", requestList);
             }
    .....
    
    <form name="myform">
     <logic:notEqual name="requestList" value="null">
      <display:table name="sessionScope.requestList" pagesize="15"
      requestURI="/findRequest.do" decorator="utils.HrefDecorator">
      <display:column property="link1" title="Request Id" sortable="true" />
      <display:column property="createDate" title="Request Date"
          sortable="true" sortName="createDate" />
      <display:column property="customer.firstName" title="First Name" />
      <display:column property="customer.lastName" title="Last Name" />
      </display:table>
     </logic:notEqual>
     </form>
    Thanks in advance,

    Jee

  2. #2
    Join Date
    Aug 2008
    Posts
    36
    Any help is apreciated... I'm stuck in this....

Similar Threads

  1. Structures and Data Referance Methods
    By rrjii2000 in forum .NET
    Replies: 60
    Last Post: 05-04-2010, 04:17 PM
  2. Replies: 0
    Last Post: 12-09-2009, 01:20 PM
  3. Code for option box
    By navajo in forum ASP.NET
    Replies: 1
    Last Post: 10-27-2000, 06:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center