I'm trying to write a jsp that invloves the insertion , updation etc of a set of records. Right now , I'm just trying to insert a set of records after selecting values from the dropdown and then inserting them.The thing is that I'm able to get the page to work perfectly when I use it with a single user , however when multiple users try to insert simultaneously , the values of each other.
Below, are my code snippets.
The usage of scriptlets at that point was unavoidable ,due to a few external circumstances. I understand that their usage is not encouraged.And below is how I process my request in the servlet Servlet.
I just dont seem to understand why the values are being overwritten . Any pointers would be helpful.
And Sorry for the long post!! .I really cant figure out where I 'm going wrong and hence the lengthy post!
And one more piece of advice: using uppercase in HTML makes it really hard to read and sort of went out of vogue in 1998. I'd suggest using lowercase for HTML as if you were using XHTML (even if you aren't). It looks more modern and is more readable.
You didn't say what data was being misdirected. There could be all kinds of things happening. For example somebody might have used static variables in the Consumer class. Or any number of other things. So knowing what data was the problem is an important clue for you.