What has to happen is the properties for each of the inputs in the list, 
have to get the correct "indexed" property to update correctly every 
time. The nested taglib in the current 1.1beta Struts can help you do 
this with ease.

If want a tutorial to walk you through it, or you're running an older 
version of Struts and need teh nested taglib library, go here...
http://www.keyboardmonkey.com/struts

After that, you shouldn't have iterating problems again.

Arron.


Yu, Yanhui wrote:

>Hi Jeff,
>
>I am similar problems here with ArrayList, could you please post the
>solution if you find any?  Appreciate it very much.
>
>Yanhui
>
>
>
>-----Original Message-----
>From: Jefferson Rodrigues de Oliveira e Silva
>[mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 02, 2002 6:29 AM
>To: Struts Users Mailing List
>Subject: problem with arraylist and iterate
>
>
>Hi all,
>
>I have the following problem:
>
>I have a bean User which has a hashtable attribute bets. The
>getBets method returns a Bet[]  array.
>
>The Bet class has 6 attributes.
>
>In the bets.jsp page, I show in a table all the values from the Bet objects
>(using iterate), one row for each object, and two of these values from each
>object
>the user is able to edit.
>
>The bets.jsp page is ok, all the values are being displayed, and
>the user can edit the two fields for each row.
>
>My problem is when the user submit this bets.jsp.
>
>How can I get all the fields (two for each table row) in a
>Form bean ?
>
>I want that the FormBean to handle the submit is the BetsForm ?
>I implemented the BetsForm with a single attribute, an ArrayList
>called bets.
>
>How should I implement this BetsForm bean ? How can it
>receive all the fields from the bets.jsp page in the
>arraylist attribute ?
>
>
>Thanks in advance
>Jefferson
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to