Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return Arraylist back to DTO

 
meera rao
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to use indexed properties. This link will explain how to do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic