I am getting error message
org.springframework.beans.NotReadablePropertyException
: Invalid property 'produts[0]
' of bean class [java.util.HashMap
]: Bean property 'produts[0]
' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
when i perform following in jsp file
<c:forEach items="${model.products}" var="prod"> varStatus="loop"> <tr> <td align="center"> <form:checkbox path="produts[${loop.index}].selected"></form:checkbox> </td> <td><c:out value="${prod.description}"/> </td> <td>$<c:out value="${prod.price}"/></td> </tr> </c:forEach>
products is populated by List<Product> getProducts();
in another class.
What i am doing wrong?