There's actually some Commons Collections support for this type of approach - see:
org.apache.commons.collections.ListUtils.lazyList Of course, one potential problem with this is if someone can forge a request with *lots* of parameters that will cause your list/array to gobble up all available memory... Quoting Jim Krygowski <[EMAIL PROTECTED]>: > Leo, > > I don't know if this will help, but we experienced a similar issue. I do > believe you are right: it is an artifact of a Request scoped ActionForm. > Our solution was to modify the indexed getters and setters so that they > automatically sized the the internal array list representation upon > request. > This approach eliminated the IndexOutOfBoundsError on submit of our form. > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>