Hi guys,
This is really interesting,don't declare global variables in
Servlet or Action Servlet.If you declare Name as a global variable , if user 'A' log's in and set his Name in the variable ,in the mean time if user 'B' log's in and set his name in variable,then user 'A' will have same value in global variable as that of 'B'.Reason,Container always creates a new
thread for every request,this thread only execute service method,so the global variables are global for all the user..So avoid using global variables in Servlet...
If i m not right please correct me...according to my observation i faced this problem in my application and overcome by removing global variable.