A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Getting MEAN with Mongo, Express, Angular, and Node
this week in the
return Arraylist back to DTO
Joined: Jun 30, 2005
Jul 18, 2006 20:24:00
I display an arraylist that contains an object of type DTO in a group of text boxes in a
page using logic:iterate and bean:write
How do I send back this arraylist (in the form of the dto)if the user changes the values in the page?
Thanks in advance.
Joined: Jul 18, 2006
Jul 18, 2006 23:25:00
1. try using nested:iterate and nested:write (although i'm not sure how your users are going to change the values if you're using write...)
2. make sure your form is in session scope in your struts-config.
I think that's how I did it...
Joined: Feb 15, 2005
Jul 19, 2006 00:03:00
You will need to use indexed properties.
will explain how to do it.
It is sorta covered in the
JavaRanch Style Guide
subject: return Arraylist back to DTO
Displaying ResultSets in View
ArrayList output from Database
Data Transfer Object
issue in displaying the body content(fetched dynamically) of the h:dataTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015