title: How do I do HTTP basic auth using Struts 2/ Spring 3?
body: <p>I am writing a RESTful web service, and certain APIs requires user identity authorization. Since HTTP basic auth is just enough for my requirements, I decide to use it.</p>
  
  <p>I want to check user credentials supplied by my API user against a MySQL database table storing those credentials.</p>
  
  <p>How do I actually achieve that using Struts 2/ Spring 3?</p>