Expose ServletContext in WebContext
-----------------------------------
Key: MAGNOLIA-1679
URL: http://jira.magnolia.info/browse/MAGNOLIA-1679
Project: Magnolia
Issue Type: Improvement
Components: core
Affects Versions: 3.1 M3
Reporter: Fabrizio Giustina
Assigned To: Fabrizio Giustina
Priority: Minor
Fix For: 3.1 M4
We currently have request and response available in WebContext but there is no
easy way for users to get a reference to a ServletContext without creating a
session (request.getSession().getServletContext()).
Since WebContext is initialized in a filter, we have a servletContext at hand
and we could make it available to users by setting it in WebContext.
I propose to add it as a third parameter in the WebContext init method:
MgnlContext.initAsWebContext(request, response, servletContext);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------