title: Spring Controller URL Mapping issues
body: <p>I have the following URL mapping in controller</p>
  
  <pre><code>@RequestMapping(value = "/additem.htm", method = RequestMethod.GET)
  @RequestMapping(value = "/additem/fileupload.htm", method = RequestMethod.POST)
  </code></pre>
  
  <p>I click on page with  <code>href="additem.htm"</code> and it goes to the controller with <code>value="/additem.htm"</code> above. I fill up form in that and submit the form. </p>
  
  <p>The form gets posted to <code>action="additem/fileupload.htm"</code>, which goes to the controller with <code>value="/additem/fileupload.htm"</code>. Once i complete this fileupload controller and returns a jsp the browser urls turns to <code>"http://localhost:8080/Dream/additem/fileupload.htm"</code>.</p>
  
  <p>The problem is, when I again click on the first link with <code>href="additem.htm"</code>, it is trying to search for controller with mapping like <code>"additem/additem.htm"</code>. </p>
  
  <p>Even when i hover over the link the browser is showing the url as <code>http://localhost:8080/Dream/additem/additem.htm</code> and it throws an error. How do i resolve this URL issue?</p>