A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 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.
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.
I agree. Here's the link:
subject: return Arraylist back to DTO
issue in displaying the body content(fetched dynamically) of the h:dataTable
Displaying ResultSets in View
Data Transfer Object
ArrayList output from Database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014