Spring MVC: please explain difference between @RequestParam and @ModelAttribute
@RequestParam just populates stand-alone variables (which may of course be fields in a @ModelAttribute class). These variables will be thrown away when the Controller is done, unless they have been fed into the model. Don’t confuse the word “model” with session. The http conversation is generally: HTTP.GET, server response, then HTTP.POST. When you have the … Read more