I declared a private boolean member variable in my servlet called "errorFlag". I was setting this to true when an error occurred. I noticed that if an error occurred and set the flag to true, that flag would be initially set to true for other requests, similar to a static member variable. Should I not use member variables in servlets? Thanks
Engrave the above in granite and hang it over your computer!
Seriously, by declaring a read/write member variable you have renderred your servlet non-thread-safe. Don't do it. That's why there are the various scopes for storing scoped variables in a controlled fashion.