This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If I have a bean in a session, and in a servlet I get an instance of that bean, modify the parameters, do I then need to add the bean back to the session or will the session object contain the new values? So for example MyBean bean = (MyBean)session.getAttribute("mybean"); bean.setA("A"); bean.setB("B"); Now, at this point, do I need to do: session.setAttribute("mybean", bean); or not... Thanks.