Issue 218: No way to create a servlet web request context without using a session
Status:  Fixed
Owner: ----
Closed:  Sep 2009
Reported by bgo...@e1b.org, Sep 14, 2009
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).
context.patch
2.1 KB   View   Download
Sep 14, 2009
Project Member #1 jeff.johnston.mn@gmail.com
Thanks! I will take a look at this early this week...I have two other patches that I
need to do as well so your timing is good.
Sep 15, 2009
Project Member #2 jeff.johnston.mn@gmail.com
That looks fine to me! It is checked into the trunk.
Status: Fixed
Labels: -Type-Defect Type-Enhancement