Have a look at RedirectAttributes
Interface in Spring, it' is built for the same purpose you are trying to implement. This basically preserve values between redirects and hence will eliminate your need of putting attributes in session and then getting them.
Here's the link