title: How to make a URL filter to route actions with Servlets?
body: <p>I'm currently developing a Java EE web framework and I would want to know how I could route my URL's... I want support HMVC feature! URL's will follow this rule:</p>
  
  <p>/module_name/controller_name/action_name, where:</p>
  
  <p>module_name: path separated by slashes... Ex.: Submodule "Y" of Module "X": /X/Y
  controller_name: name of controller with no special chars
  action_name: name of action with no special chars</p>
  
  <p>I would like map /module_name/controller_name/ to a specific servlet controller! Action part is a public method on that class! :) </p>
  
  <p>How I could do this? Using filters? I want an example, if possible!</p>