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.
Hi, When my jsp page was hit by 10 people at a time,I got an error message for one person with anothers data. Let me explain you clearly, 'A' and ' B' are two persons. A is getting a message "unable to submit with this "userID". " But the userID 'A' got is entered by 'B' Do I need to write a session in my servlet? If yes how can I write a session? Thanks, Sravanthi
You have undoubtedly used one or more instance variables to hold user data - this results in exactly what you have seen. You will have to do something to keep the various users data separate - sessions are provided by the API for this function. Probably the servlet/JSP engine you are using came with some sample applications - search the source code for HttpSession usage. Any book on servlets and JSP will cover this. Bill