title: Spring MVC - how to pass data from filter to controller
body: <p>I use <strong>Spring MVC</strong> in my web application. For every request I'd like to <em>prepare the environment</em>, for example load some data from the datastore and save it so every controller could access that information. I assume that's what filters are for (among other things). I can attach an information to the <code>request</code> variable in a filter, but how do I access it from the controller? Or is there a generally better way to do this?</p>