Announcement Announcement Module
Collapse
No announcement yet.
creating/setting a Session attribute Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • creating/setting a Session attribute

    Hello everyone,
    I need to create an attribute in my sessions when they are first created.
    What would be the way to do this?
    Is it possible to define a <property/> in the context for this Session Attribute so that once the session is created a new Created been is attached to this property?

    Thanks

  • #2
    You can use a javax.servlet.http.HttpSessionListener. It is also possible to access Spring webApplicationContext using org.springframework.web.context.support.WebApplica tionContextUtils.
    HTH

    Comment

    Working...
    X