Wie lese ich Flash-Attribute nach der Umleitung in Spring MVC 3.1?
Ich würde gerne wissen, wie man Flash-Attribute nach der Umleitung in Spring MVC 3.1 liest.
Ich habe folgenden Code:
@Controller
@RequestMapping("/foo")
public class FooController {
@RequestMapping(value = "/bar", method = RequestMethod.GET)
public ModelAndView handleGet(...) {
// I want to see my flash attributes here!
}
@RequestMapping(value = "/bar", method = RequestMethod.POST)
public ModelAndView handlePost(RedirectAttributes redirectAttrs) {
redirectAttrs.addFlashAttributes("some", "thing");
return new ModelAndView().setViewName("redirect:/foo/bar");
}
}
Was mir fehlt