title: Spring - URI mapping issue
body: <p>I´m getting a mapping error on my application, any help would be greatly appreciated! =)</p>
  
  <p>Error message: No mapping found for HTTP request with URI [/springapp/priceincrease.htm] in DispatcherServlet with name 'springapp'</p>
  
  <p>You can find some code below:</p>
  
  <p>PriceIncreaseFormController.java</p>
  
  <pre><code>@Controller
  @RequestMapping(value="/priceincrease.htm")
  public class PriceIncreaseFormController {
  
  /** Logger for this class and subclasses */
  protected final Log logger = LogFactory.getLog(getClass());
  
  @Autowired
  private ProductManager productManager;
  
  @RequestMapping(method = RequestMethod.POST)
  public String onSubmit(@Valid PriceIncrease priceIncrease, BindingResult result)
  {
      if (result.hasErrors()) {
          return "priceincrease";
      }
  
      int increase = priceIncrease.getPercentage();
      logger.info("Increasing prices by " + increase + "%.");
  
      productManager.increasePrice(increase);
  
      return "redirect:/hello.htm";
  }
  
  @RequestMapping(method = RequestMethod.GET)
  protected PriceIncrease formBackingObject(HttpServletRequest request) throws ServletException {
      PriceIncrease priceIncrease = new PriceIncrease();
      priceIncrease.setPercentage(15);
      return priceIncrease;
  }
  
  public void setProductManager(ProductManager productManager) {
      this.productManager = productManager;
  }
  
  public ProductManager getProductManager() {
      return productManager;
  }
  
  }
  </code></pre>
  
  <p>app-config.xml
      </p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:mvc="http://www.springframework.org/schema/mvc"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans.xsd
         http://www.springframework.org/schema/context
         http://www.springframework.org/schema/context/spring-context.xsd
         http://www.springframework.org/schema/mvc
         http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
  
     &lt;bean id="productManager" class="com.companyname.springapp.service.SimpleProductManager"&gt;
       &lt;property name="products"&gt;
          &lt;list&gt;
              &lt;ref bean="product1"/&gt;
              &lt;ref bean="product2"/&gt;
              &lt;ref bean="product3"/&gt;
          &lt;/list&gt;
       &lt;/property&gt;
     &lt;/bean&gt;
  
  
     &lt;bean id="product1" class="com.companyname.springapp.domain.Product"&gt;
       &lt;property name="description" value="Lamp"/&gt;
       &lt;property name="price" value="5.75"/&gt;
     &lt;/bean&gt;
  
     &lt;bean id="product2" class="com.companyname.springapp.domain.Product"&gt;
       &lt;property name="description" value="Table"/&gt;
       &lt;property name="price" value="75.25"/&gt;
     &lt;/bean&gt;
  
     &lt;bean id="product3" class="com.companyname.springapp.domain.Product"&gt;
       &lt;property name="description" value="Chair"/&gt;
       &lt;property name="price" value="22.79"/&gt;
     &lt;/bean&gt;
  
  
     &lt;bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
       &lt;property name="basename" value="messages"/&gt;
     &lt;/bean&gt;
  
     &lt;!-- Scans the classpath of this application for @Components to deploy as beans --&gt;
     &lt;context:component-scan base-package="com.companyname.springapp.web" /&gt;
  
     &lt;!-- Configures the @Controller programming model --&gt;
     &lt;mvc:annotation-driven/&gt;
  
     &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/views/"&gt;&lt;/property&gt;
       &lt;property name="suffix" value=".jsp"&gt;&lt;/property&gt;        
     &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>web.xml
      </p>
  
  <pre><code>&lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
    &lt;display-name&gt;Springapp&lt;/display-name&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;springapp&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
        &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
        &lt;param-value&gt;/WEB-INF/spring/app-config.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
     &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
  
    &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;
  
  &lt;/web-app&gt;
  </code></pre>