I just started using nested tags on a page, and when I submit it, Struts
causes the following error:

HTTP ERROR: 503 Service Unavailable
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
RequestURI=/ecom/productSetUpdateSubmit.do

This happens before even getting to my action. The form is displayed
correctly with several items in the collection.

JSP snippet:

<nested:iterate property="items"
type="com.mycompany.ecom.dao.ProductSetItem">
<tr>
  <td class="label">Item:</td>
  <td class="ecombody"><nested:text property="productPartID"
styleClass="form"/></td>
  <td class="ecombody"><nested:text property="status"
styleClass="form"/></td>
</tr>
</nested:iterate>

Form snippet:

private Collection items;
public Collection getItems() { return items; }
public void setItems(Collection items) { this.items = items; }


I'm running Struts 1.1 on JBoss-2.4.3_Jetty-3.1.3-1 with JDK 1.3.1_11

Any ideas? How do I get past this problem?

Wiebe


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

Reply via email to