I currently use @ModelAttribute ClassName className to “cast” my webform into a class.
@RequestMapping("/SaveEventRegistration")
public ModelAndView saveEventRegistration(@ModelAttribute EventRegistration userEventRegistration) {
I’m just wondering if I really need to do this. for there is a generic form class that list all the fields in my web form.
You can have access to the request:
And then get you form data manually using: