title: Spring MVC; avoiding file extension in url?
body: <p>I just started with Spring Web MVC. I'm trying to avoid file extenstions in the url. How can i do this? (I'm using Spring 2.5.x)</p>
  
  <p><strong>Bean:</strong></p>
  
  <pre><code>&lt;bean name="/hello.htm" class="springapp.web.HelloController"/&gt;
  </code></pre>
  
  <p>I want it to be:</p>
  
  <pre><code>&lt;bean name="/hello" class="springapp.web.HelloController"/&gt;
  </code></pre>
  
  <p>I cannot get it to work. Any ideas?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Url-mapping</p>
  
  <pre><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;springapp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I have tried changing the url-pattern with no luck (* and /*).</p>