All the above coding is made inside a class and set as an attribute in ServletContext scope. When data is to be stored into the database,i get the Connection via a method in the above class and make the corresponding insertions. i am not using any synchronized keyword anywhere. i used a simple name and email textbox page that in turn to be stored in the database.
my question is how the data is bound to individual thread/requests.why doesn't the data get interchanged or misplaced. like say A's email gets stored in as B's email and vice-versa.it just works fine under the blue.why and how?