Hi sagar,
I assume that eventhough the session is timedout, it would still be there unless we cleanup the request parameters.
When I relogin after session time out....In the RetrieveRequestParameters()...I would just say
HttpSession session = httpRequest.getSession(true);
if(session != null){
Map savedParams = (Map) session.getAttribute(REQUEST_PARAMS);
if (savedParams == null)
return httpRequest;
return new SessionStateDecorator(httpRequest, savedParams);
}
return httpRequest;
And this is actually working....and i can see these parameters while in debug mode..I used the following example since it matches my requirement exactly...plzz go through the link
http://today.java.net/pub/a/today/2007/01/04/transparent-state-management-using-decorator-pattern.html