Announcement Announcement Module
Collapse
No announcement yet.
mapping/binding error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • mapping/binding error

    can someone help me fix this:

    Code:
    <c:forEach items="${addSaleForm.items}" var="i" varStatus="itemsRow">											
    							<td><form:input id="qty" path="items[${itemsRow.index}]" size="4" maxlength="4" value="${items[itemsRow.index]}"/></td>
    							<td><form:errors path="items[${itemsRow.index}]" cssClass="error"/></td>	
    					</c:forEach>
    generates this error:
    Code:
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'items[0]' of bean class [CyberSous.Model.Sales]: Invalid array index in property path 'items[0]'; nested exception is java.lang.ArrayIndexOutOfBoundsException
Working...
X