The moose likes Struts and the fly likes Nested objects in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Nested objects in Struts" Watch "Nested objects in Struts" New topic
Author

Nested objects in Struts

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Folks,

I have the following problem, My data model consists of an object(A) that has an ArrayList of another object (B). Object B has an ArrayList of another object (C). I'm displaying the data on the screen in a windows explorer tree like format where the user checks and unchecks the items
(s)he wants to include.
I have no problem displaying the data using the iterate tag where I have 3 iterates. my problem is when the user checks any of the items the values doesn't get submited back to the form.

I tried using nsted tags but it didn't work - I must be doing something wrong - and I pretty much exhaused all that I know. Can anybody shed some light on that? All the example available online address viewing the data but NONE of it mentioned saving it back!!!

Thanks
Einas
 
 
subject: Nested objects in Struts
 
Threads others viewed
Forwarding data changes in MVC
Arraylist problem
Trouble with model for calculating and adding table values dependent on multiple rows
A cleaner way to display LinkedHashMap/ArrayList
refresh data on a GUI from another GUI
MyEclipse, The Clear Choice