aspose file tools*
The moose likes Struts and the fly likes return Arraylist back to DTO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "return Arraylist back to DTO" Watch "return Arraylist back to DTO" New topic
Author

return Arraylist back to DTO

meera rao
Ranch Hand

Joined: Jun 30, 2005
Posts: 67
I display an arraylist that contains an object of type DTO in a group of text boxes in a jsp 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.
Em Walsh
Greenhorn

Joined: Jul 18, 2006
Posts: 3
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...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You will need to use indexed properties. This link will explain how to do it.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: return Arraylist back to DTO
 
Similar Threads
issue in displaying the body content(fetched dynamically) of the h:dataTable
IndexedProperties doubt
Data Transfer Object
Displaying ResultSets in View
ArrayList output from Database