Hello, I'm trying to use Strut indexed tag but keep getting java.lang.IndexOutOfBoundsException: Index: -999999999. It displays with correct values but when the form is submitted, I got the error. Below is a snip of my code. Do you know hat's wrong with it?
JSP code: <logic:iterate name="formBean" property="pools" id="pools" type="mypackage.Pool"> <tr class="fieldvalue"> <td><bean:write name="pools" property="poolBarcode"/></td> <td><bean:write name="pools" property="poolName"/></td> <td align="center"><html:text name="pools" property="noMember" indexed="true"/></td> <td align="center"><html:text name="pools" property="minAmt" indexed="true"/></td> </tr> </logic:iterate> Form Code: List pools = new ArrayList(); public List getPools() { return this.pools; } public Pool getPools(int i) { return (Pool) this.pools.get(i); } public void setPools(List v) { this.pools = v; } public void setPools(int i, Pool v) { this.pools.set(i, v); } ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]