Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Storing values in session - Spring MVC 3.2

 
Raghu Sha
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using spring mvc 3.2

Which is the best way to store & retrive the values from session?

Thanks,
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use @SessionAttribute to have Spring store model information on your Session and retrieve it for you.
http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-sessionattrib

If you are looking for a more generic usage just pass in the HttpSession.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic