| Issue 218: | No way to create a servlet web request context without using a session | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The HttpServletWebRequestContext constructor calls request.getSession(), which creates a new session if one does not exist. The only purpose for doing this on construction of the context is to grab the servlet context without having it explicitly passed in. My application has a session listener to monitor the requirement that no HttpSession is created, which is triggered when trying to render a JMesa table (even if I am not using the state feature or anything). Attached is a patch that provides an alternate constructor to HttpServletRequestWebContext that allows the servlet context to be passed in explicitly, avoiding a call to getSession() unless session access is actually necessary (ie, setSessionAttribute is called or something like that).
Sep 14, 2009
Project Member
#1
jeff.johnston.mn@gmail.com
Sep 15, 2009
That looks fine to me! It is checked into the trunk.
Status:
Fixed
Labels: -Type-Defect Type-Enhancement |