title: Java Servlet extend another Servlet
body: <p>The <code>init</code> method in most (all) of my servlets is similar. Mostly initializing a <code>DataSource</code></p>
  
  <p>I am thinking of creating a <code>BaseServlet</code> having a protected <code>DataSource</code> and the <code>init</code> method implemented and all other servlets extend this <code>BaseServlet</code>.</p>
  
  <p>Any Gotchas I should be wary of?</p>