tareq
Aug 31st, 2004, 10:53 AM
Hi,
I am using a controller with SimpleFormController as base class and I am getting an exception the first time I go to the page :
javax.servlet.ServletException: Could not find Errors instance for bean [MyBean] in request: add the Errors model to your ModelAndView via errors.getModel()
here is the method I implemented in my controller :
protected void doSubmitAction(Object command) throws Exception {
log.info(command);
}
and here is the jsp view :
<spring:bind path="MyBean.text">
<input type="text" name="${status.expression}">
</spring:bind>
Any idea ?
I am using a controller with SimpleFormController as base class and I am getting an exception the first time I go to the page :
javax.servlet.ServletException: Could not find Errors instance for bean [MyBean] in request: add the Errors model to your ModelAndView via errors.getModel()
here is the method I implemented in my controller :
protected void doSubmitAction(Object command) throws Exception {
log.info(command);
}
and here is the jsp view :
<spring:bind path="MyBean.text">
<input type="text" name="${status.expression}">
</spring:bind>
Any idea ?