Spring - Flash scope and Post-Redirect-Get pattern
What is flash scope? Flash scope is a concept which does not exist in Spring, but in JSF 2 and Play framework. It is a scope between request scope, which is created and removed for each request, and session scope, which last for entire user session. Flash scope is used in the Post-Redirect-Get pattern. Attributes kept in flash scope, using flash bean , will be available during the current request and the next request. What is Post-Redirect-Get ? How to achieve flash scope in Spring? Since Spring 3.1+, RedirectAttributes can be used for the same purpose. See http://www.tikalk.com/java/redirectattributes-new-feature-spring-mvc-31