lyncode/jtwig — pull request #155 by dustins (2014-07-28 12:51:49+00:00)
Title: removed unnecessary session creation

Since JtwigView already extends Sping's WebApplicationObjectSupport, it is possible to get the ServletContext without going through the HttpServletRequest—which prior to 3.0 required creating an HttpSession.

Not forcing a session to be created or previously exist is beneficial because it saves resources (time/storage/computational), but more importantly it won't cause an exception if session creation has been disabled on the request.