|Home > Guides > Core Developers Guide > Accessing application, session, request objects|
The framework provides several access helpers to access Session, Application, Request scopes.
All the JEE scope attribute maps can be accessed via
We can also access the
HttpServletResponse objects themselves through
ServletActionContext. In general this isn't recommended as it will tie our action to the servlet specification.
ServletResponseAware, combined with the
"servletConfig" interceptor, is an alternative way to access the request and response objects, with the same caveat.
Request and session attributes are accessed via OGNL using the
#request stack values.
#attr stack value will search the
javax.servlet.jsp.PageContext for the specified key. If the
PageContext doean't exist, it will search the request, session, and application scopes, in that order.