Sending form data as a custom object to a Spring MVC Controller

1 · Sunit Katkar · Oct. 23, 2017, 9:53 p.m.
Form Data and Spring MVC ControllersIn a Spring MVC application, sending form data to the controller is quite well known and trivial. Typically all data gets sent as a bunch of key=value pairs. Each key is a request param which can be captured in the Controller using the @RequestParam("key") String key construct in the method signature.If the number of fields are less, then you can use the request param construct to capture each form field, but if there are several form fields, then using this a...