• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Populating an ArrayList through JSON

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi all

I have an ArrayList object in my Structs2 action class. I want to populate it when i send a request. In the action class i hv this


which holds the SaveNewIRDTO object which has 3 attributes with the proper getters and setters. In the Javascript file i'm sending a request using JQuery JSON support. I'm passing the object through the URL and assigning the values for the attributes in the following way

:where "selectedIlRows" is initialized correctly

My issue is there are three instance of the SaveNewIRDTO object created (When the loop is iterated only once) within the ArrayList

I think i'm doing something really dumb here...can some one please help me out??
 
Acro Acromantula
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
opps....how stupid of me

 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic