title: How to get ServletConfig object in Filter
body: <p>Is there any way to get <code>ServletConfig</code> object of the servlet in a <code>Filter</code> applied to that servlet?</p>
  
  <p>Edit-> The scenerio is i have mentioned the names of roles(who can access the servlet)
   in the 'init-param' of the serlvet declaration in web.xml</p>
  
  <p>The applied filter will check(using ServletConfig) whether the person who is trying to access the servlet is authorized(in roles) to access it or not.</p>