title: servlet context and singleton object
body: <p>I have seen an example of Singleton class object where it has a map containing user-id and password retrieved from database. This will help not to hit DB everytime during user login.</p>
  
  <p>Now i am thinking, can't this be done through ServletContext attribute.</p>
  
  <p>Basically on both the cases we will have application wide object. </p>
  
  <p>So, Can we use ServletContext attribute in this case.</p>