Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to do paging in jsp

843838Feb 16 2007 — edited Feb 22 2007
I want to know how to do paging in a jsp. Im getting data from a database as an object list and show them using a display:table. I want to show 10 records in one page and rest like in next pages. So can you give me a sample code. I have shown here my code in the jsp where I use to get data. Pls tell me what are the tags I need to add and anything to be changed in sql queries and so on.
<display:table border = "0" width="100%" scope="session"  pagesize="15" offset="15" name="recievedReportQueues" styleClass="table_report" requestURI="receivingSmsReportPaging.do">
                      <display:column  property="id" title="Id"  align="center" href="recSMSValueShow.do?showRec=showRecievedDetails" paramId="recievedSMSValueSid" paramProperty="id"  sort="true" width="10%"/>    
                      <display:column property="module" title="Module" width="10%" align="center" sort="list"/>
                      <display:column property="modifiedDateOnly" title="Updated Date" width="10%" align="left" sort="list" maxLength="15" />                  
                      <display:column property="modifiedTimeOnly" title="Updated Time" width="20%" align="left" sort="list" maxLength="15" />                  
                      <display:column property="mobileNo" title="Sender Mobile Number" width="15%" align="left" sort="list"  />
                      <display:column property="status" title="Status" align="left" width="10%" sort="list"/>                      
                      <display:column property="message" title="Message Text" width="35%" align="left" sort="list"  maxLength="40"/>
                      <display:setProperty name="sort.behavior" value="list" />
                      <display:setProperty name="paging.banner.include_first_last" value="true" />
                      <display:setProperty name="table_report" value="true" />
                      </display:table>
Please help me with this....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2007
Added on Feb 16 2007
1 comment
190 views