> Thx Aaron.
      Arron? - Why? My dad was hilarious back in his day.  :P

> That solution works great for displaying the data.  However,
> Struts will not know how to populate the List back when the data is
> received from the user, since the Indices cannot be set in that access
> wrapper object. 

Well... the mechanism the tags use to display is the same as the mechanism 
the server uses to update, BeanUtils. So I'm guessing that it's the 
old "Struts can populate lists..." thing. Try it again while keeping the bean 
in the session scope. It "should" work.

To get it back out of session scope and into the request scope, you'll have 
to employ the technique of the LazyList stuff in the commons-collections 
project. Look for the LazyList docco in the 
org.apache.commons.collections.ListUtils class. This will allow you to wrap 
your ArrayList (without any real overhead), and allow it to grow 
automatically when all those indexed items come back in.


Arron.

* you've got rail!



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to