This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
Im writting a web application using spring frame work where after successful login a dashboard is shown according to user's privilege. I have extended a abstract controller and code looks like this
in the success.jsp, all the district and department under his privileges are displayed. how can i make this thread safe as multiple users will be loging in at same time .
will there be problem with thread saftey when i use unsynchronized objects like httpsession and HashMap. Can any one guide me on this ?
i thought it is thread safe but my success page is displaying wrong values (values of other user) when mutiple users are logged in .This is also not happening always. i thought it could be some problem with thread safety as i have not synchronized my controller or jsp or any other beans