org.springframework.beans.NotReadablePropertyException: Invalid property of bean class Bean property is not readable or has an invalid getter method
The path
values in your form:label
and form:input
tags should be relative to the command object referenced in form:form
. In other words, the path
values should be property names of the class of the creationDate
object. Bascially just remove the creationDate.
prefix so you end up with this:
<form:form commandName="creationDate" method="GET" action="add">
<form:label path="particularDate">Particular Date</form:label>
<form:input path="particularDate" />
<form:label path="childGoSchoolDate">Child go to School</form:label>
Assuming that the creationDate
class has properties (with getters/setters) called particularDate
and childGoSchoolDate
.