I have a controller that a form posts to:
@RequestMapping(value = "/formtest", method = RequestMethod.POST)
public ModelAndView HandleFormPost()
{
ModelAndView mv = new ModelAndView("posttest");
return mv;
}
What are my options in retrieving the data from the form?
In asp.net I would just do:
Request.Form["key"] or Request["key"]
or I could use a parameter in my action FormCollection and then just do:
form["key"]
I am using spring MVC (version 3), what are my options?