Where do model attributes get stored?

java, jsp, servlets, spring, spring-mvc

Solution

It's in the request, unless modified with a `@SessionAttributes`. If you're doing a redirect--request attributes are lost; it's a new request. For your second and third question are addressed by this link Where does the Spring Model that is passed to a JSP goes to?

Problem

I searched a lot and can't find an answer. Where the model object values are stored in `Spring` . Where the `model.addAttributes("key","values")` values are stored (eg : session , request).What is the scope of the this? How I can get the values of the stored value in the JSP using the `expression language` like `${key}` ? How the `EL` works to retrieve the stored values in the `model`?

Original source

Related problems