title: Using global variables in servlet evil?
body: <p>I have a <code>global variable</code> called <code>loginAttempt</code> in a <code>servlet class</code>. What will happen to this <code>global variable</code> if two <code>requests</code> hit on the same time?What will happen is an unforeseeable event.</p>
  
  <p>Is having global variables in servlet an evil ??</p>
  
  <p>If i put the <code>loginAttempt</code> is side <code>doPost()</code> its initializing each time.</p>