title: Framing multiple servlet request url pattern
body: <p>I am using servlet to get request from frontend.
  Am i able to make single servlet which could do multiple operation based on url pattern?
  Here will be my url mapping</p>
  
  <pre><code>&lt;servlet&gt;
  &lt;servlet-name&gt;Hello&lt;/servlet-name&gt;
  &lt;servlet-class&gt;HelloWorld&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;Hello&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/HelloServlet&lt;/url-pattern&gt;
  &lt;url-pattern&gt;/HelloServletOne&lt;/url-pattern&gt;
  &lt;url-pattern&gt;/HelloServletTwo&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>That means if i hit to the url as framed below it should invoke its own functionalities. </p>
  
  <ul>
  <li>URL:/HelloServlet: it should do function 1</li>
  <li>URL:/HelloServletOne: it should do function 2</li>
  <li>URL:/HelloServletTwo: it should do function 3 etc.</li>
  </ul>
  
  <p>How can i achive this by extending servlet.?<br>
  Code/link examples are much appreciated.</p>