File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "return Arraylist back to DTO" Watch "return Arraylist back to DTO" New topic

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

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: return Arraylist back to DTO
It's not a secret anymore!