title: urlrewrite.xml doesn't seem to be working
body: <p>I've been working on a Spring Project. I want my URL written in localhost:8080/app/main/something instead of localhost:8080/app/main.htm?type=something.
  Or maybe something like localhost:8080/app/employee/input instead of localhost:8080/employee.htm?type=input, but so far the URL remains the same. Can somebody help me?</p>
  
  <p>Here is my web.xml</p>
  
  <pre><code>        &lt;filter&gt;
              &lt;filter-name&gt;UrlRewriteFilter&lt;/filter-name&gt;
              &lt;filter-class&gt;org.tuckey.web.filters.urlrewrite.UrlRewriteFilter&lt;/filter-class&gt;
              &lt;init-param&gt;
  
                  &lt;param-name&gt;logLevel&lt;/param-name&gt;
                  &lt;param-value&gt;DEBUG&lt;/param-value&gt;
              &lt;/init-param&gt;
          &lt;/filter&gt;
  
          &lt;filter-mapping&gt;
              &lt;filter-name&gt;UrlRewriteFilter&lt;/filter-name&gt;
              &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
              &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
              &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
          &lt;/filter-mapping&gt;
  
  
  
        &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;verse&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>And here is my urlrewrite.xml</p>
  
  <pre><code> &lt;rule&gt;
  &lt;from&gt;^/main.htm?type=([a-z]+)$&lt;/from&gt;
  &lt;to type="redirect"&gt;/main/something/&lt;/to&gt;
   &lt;/rule&gt;
  
   &lt;rule&gt;
  &lt;from&gt;^/inputregion.htm$&lt;/from&gt;
  &lt;to type="redirect"&gt;/main/region/input&lt;/to&gt;
   &lt;/rule&gt;
  </code></pre>
  
  <p>My viewResolver in servlet:</p>
  
  <pre><code>&lt;bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
              &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView"&gt;&lt;/property&gt;
              &lt;property name="prefix" value="/WEB-INF/jsp/"&gt;&lt;/property&gt;
              &lt;property name="suffix" value=".jsp"&gt;&lt;/property&gt;                    
          &lt;/bean&gt;
  </code></pre>