Stripes

Improve HttpSession creation

Details

Description

As discussed on the devel-mailing list, Stripes is quite aggressive regarding the creation of a HttpSession. Attached are three patches to tame this behavior a little

The first patch is for DispatcherServlet and changes the flag to create a session in the JpsFactory#getPageContext() method call.

The other two patches correct the usage of request.getSession().getServletContext() and replace this code with the recommended version StripesFilter.getConfiguration().getServletContext() which has no side effects.

  1. DispatcherServlet.patch
    28/Mar/07 6:22 AM
    1 kB
    Sebastian Beigel
  2. LayoutRenderTag.patch
    28/Mar/07 6:22 AM
    1 kB
    Sebastian Beigel
  3. SpringHelper.patch
    28/Mar/07 6:22 AM
    1 kB
    Sebastian Beigel

Activity

Hide
Aaron Porter added a comment - 26/May/07 6:00 PM

patches applied

Show
Aaron Porter added a comment - 26/May/07 6:00 PM patches applied

People

Vote (0)
Watch (0)

Dates

  • Created:
    28/Mar/07 6:21 AM
    Updated:
    04/Jan/11 2:57 PM
    Resolved:
    26/May/07 6:00 PM