Description
Mike Zupper opened SPR-794 and commented
Here is the scenerio:
- MyAccountForm extends SimpleFormController
- MyAccountValidator implements Validator
Within MyAccountForm I override the following method:
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response,
Object command,
BindException errors)
throws Exception
with proper validation and no errors, The framework should call the "onSubmit" method with the defined signature but it does not. If I override, the following method:
protected ModelAndView onSubmit(Object command)
throws Exception
it calls the "onSubmit" method properly.
I need to access the HTTP request to set session data.
I used my IDE's debugger to trace it down and I could not find any reason why that above onSubmit method does not work... Any Ideas????
Please see issue# #5420 for similar problem.
Thanks,
Mike Zupper (mzupper@boscovs.com)
Affects: 1.1.3, 1.1.4, 1.1.5
Attachments:
- SimpleFormController.java (16.39 kB)
Issue Links:
- After a successfull validation Spring does not call the onSubmit method with signature of (request, response,object, bindexception) [SPR-692] #5420 After a successfull validation Spring does not call the onSubmit method with signature of (request, response,object, bindexception) ("duplicates")