Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1 M3
-
None
Description
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);
Checklists
Acceptance criteria