I am trying out a sample project using Spring MVC annotated Controllers. All the examples I have found online so far bind the JSP to a particular model and the controller us
If one doesn't want to create another class (bean) though it should be there, then apart from @ModelAttrbute one can also use @RequestParam.
@ModelAttrbute
@RequestParam
public String someAction(@RequestParam("somedata") String data) { ------ }