Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > The best way to update a collection in a struts page using "logic:iterate"

Thread Tools

The best way to update a collection in a struts page using "logic:iterate"

Posts: n/a
In my ActionForm, I used ArrayList, as a property, to hold a
collection of query result rows from db and each row is stored in the
ArrayList as a
Java object with many fields. I display the collection using tag
<logic:iterate>. Some of fields appear as text field in the table on
the jsp
page. Users will make some modification and click a submit button so
the form is sent back to the server.

My questions are:

- What is the best way to obtain the modified data in the Action?

- Should I give each row a numbered name so that I can access them
them as parameters?
- Or is there any better solution in Struts to deal with

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Advice Needed: Best way to use Maven (w. Eclipse/Struts/Spring/Hibernate/svn/ant) etienno Java 0 12-13-2006 10:15 AM
Struts with vectors? Best way to solve this problem? Scott Phelps Java 3 06-10-2005 02:42 PM
Is it safe to point to Internet for locating struts DTD files in struts TLDs and XML files? Katie Wright Java 8 01-07-2005 03:37 PM
Struts Installation - missing struts.tld??? Jason Us Java 0 10-03-2003 11:36 PM