RE: Logic:iterate and html:text problem

2004-01-19 Thread Andrew Hill
snip but I don't know how large this Vector will be /snip One trick is to submit the size back in a hidden field. In the forms reset() method, you can use request.getParameter() (unless its a multipart form!) to get the size and initialise the vector before the form is populated from the request.

RE: Logic:iterate and html:text problem

2004-01-19 Thread Shishir K. Singh
Well, a) I have not used logic:iterate for these purpose, hence won't be able to help you out much there. I use the JSTL tags and try to keep away from the struts tag as much as possible. b) I would use ArrayList instead of Vectors. What I would do if I were you would be something like this: