Hi Peter, I think you gave far too less information for someone to really be able to help you with this problem. However I do have an observation about your code: I suppose that the "userSelection" HashMap is first retrieved from session, then modified (by removing something). You don't need to remove it from session and the put it back, as the modifications you make on an object you retrieve from session are "live" on the session object. I suggest you to try to keep your code simple and check if you are really removing what you think you are removing from your session HashMap (and not from somewhere else).
On Mon, 27 Dec 2004 21:50:14 +0100, Peter Neu <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a problem with an object(A hash map with wrapper objects) which I > have put in the session scope on Page 1. On page 2 I modify it and > delete some of the wrapper objects from the hash map. Aftwards I put the > modified hash map back into the sessions scope. > > Code: > ------ > HashMap userSelection.remove(this.wertPosition); > request.getSession().removeAttribute("hashMap2"); > request.getSession().setAttribute("hashMap2", userSelection); > ------ > > When I return to page 1 to add new wrapper objects and switch to page 2 > the "deleted" objects reapear again altough I explicitly deleted them > form the session scope. > > What is wrong there? I simply don't understand it. > The pages are configured to work in the session mode. > > Regards , > > Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]