daveck wrote:
Hi,
I'm looking for some help, or some input on why I might be losing session
attributes (Not the session itself).
Are you sure? Have you confirmed that the session is the same in both
requests?
[...]
I am setting session attributes in my interceptor to have available
following the confirm.jsp.
[...]
HttpSession session = request.getSession(true);
getSession(true) will create a session if one doesn't exist on the
request. If the session got lost somehow, this will mask that fault. You
might want to use getSession(false) and add a guard to ensure the
session is really there.
[...]
// save input form attributes to session
session.setAttribute("PARMS", request.getParameterMap());
Assuming the session really is the same, I'm guessing this is the
problem. You're saving a reference to a map owned by the current
request. There's no guarantee the underlying HttpServletRequest instance
wont have been reused by the time you try to access the map.
Try making a copy of the request parameter map and storing that instead.
Also, you don't show any code that's removing the data you placed in the
session. Do you have clean-up code you didn't show and, if so, could it
be getting called out of sequence?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]