loading table of contents...

4.3.6.2. Form submission

A form submission can be handled with Spring MVC means. The form backing bean is automatically filled with the posted values of the form. When a responsible handler is found for a request, the form bean is passed as a method argument to the handler method if a method parameter is annotated with @ModelAttribute.

public ModelAndView handleFormSubmit(
    @ModelAttribute("nameOfForm") MyForm form, ...)