Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:07:39+00:00 2026-06-05T03:07:39+00:00

Using jQuery ajax when click on Next I will get list of objects (which

  • 0

Using jQuery ajax when click on “Next” I will get list of objects (which contains list of objects internally) without converting that to json and not using any other plugin, how I can render this list to display the table similar to in struts.

Currently I am using a include jsp with only the table to be refreshed with next set of results and replacing the existing table div with new jsp. Can someone suggest any other method to do this.

List of Orders and each order has multiple items. One row represents

Order#  --  Order Date -- Item# -- Item Description

                            1   --  Shirt
1       --  05/21/2012 --   2   --  Pant
                            3   --  Brief

If I have 100 orders per page if I display 25 Orders when I click on “NEXT” button as explained above I will get list of next 25 orders then it should display the next 25.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:07:41+00:00Added an answer on June 5, 2026 at 3:07 am

    I have used the .load function to refresh the list. Same as given example, No conversion to Json is required.

    Action Class

    public String 25Orders(){
    // get from DB 25 orders
    // on Click of next by passing page 2 get next 25 orders
    }
    
    public Map<abc, Lis<xyz>> getOrders(){
    return objects;
    }
    

    .js class

    $("a[id=pagination]").click(function(event) {
         $("div").load("fulord",{pageStr:this.name});
    });
    

    jsp class

    <div id=OrdersTable>
    <s:iterator value="Orders">
       <tr>
         <td><s:property value=key.orderNumber/></td>
         <td><s:property value=key.orderDate/></td>
          <td>
            <table> 
               <s:iterator value=items>
                <tr>
                 <td><s:property value=itemNumber/></td>
                 <td><s:property value=itemDesc/></td>
                </tr>
               </s:iterator>
             </table>
          </td>
       </tr>
    </s:iterator>
    </div>
    

    NOTE:
    But I see one problem here if a page has more than one div or if I try to give div ID in js it won’t work properly. I am trying to resolve that but as of this is solution I found.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a CMS using jQuery and AJAX. When I click, my Add Campaign
I have a problem with an animation in jQuery using ajax. On the click
I have some content that I am loading using jquery ajax. The content has
I am trying to get a piece of data back using jQuery ajax via
I have an list of paged results that is using AJAX requests to populate
I'm using jQuery AJAX to implement a voting system. I'm using this code: $(.vote_up).click(function(){
I am using jQuery ajax to pass a string array to a page method.
I'm posting data using jquery/ajax and PHP at the backend. Problem being, when I
How to pass multiple checkboxes using jQuery ajax post this is the ajax function
I am posting to the server using jquery ajax using $.post. After server returns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.