|Home > FAQs > How do we get access to the session|
You can obtain the session attributes by asking the ActionContext or implementing SessionAware. Implementing SessionAware is preferred.
The session attributes are available on the ActionContext instance, which is made available via ThreadLocal.
servletConfigInterceptor is included in the Action's stack.
setSessionmethod. You may wish to include a companion
getSessionto obtain a Map representing the session attributes.