If I add the ModelMap attribute:
model.addAttribute("abc", 123);
and display the view:
@RequestMapping(value = "/foo", method = RequestMethod.GET)
public final String foo(HttpServletRequest request, BindingResult bindResult, ModelMap model) {
model.addAttribute("abc", 123);
return "foo";
}
I see this in the address bar of the browser:
http:
Is it possible to add an attribute to a model without displaying it as a pair of query string names? (I am using Spring MVC 3.0)
source
share