Archive for 'Spring'
Passing reference data to the success view
When using Spring’s SimpleFormController, the default behaviour is to pass reference data to the form view, but not to the success view. However it’s very easy to override this behaviour, and access the reference data from the success view as well.
To do this, override the 4-argument onSubmit method like this:
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, [...]
Posted: March 17th, 2007 under Java, Spring.
Comments: 2