title: RequestMapping redirecting Error404
body: <p>please help me with Spring's RequestMapping. I want my web app prints cities when I click country(url). So I created WebController, which has this RequestMapping.</p>
  
  <pre><code> @RequestMapping(value = "/cities/{cityId}", method = RequestMethod.GET )
          public List &lt;City&gt; searchCityById( @PathVariable ("cityId") Long cityId) {
  
  
              return ciserv.searchCityById(cityId);
          }
  </code></pre>
  
  <p>ciserv - my Service, it work fine
  and countrylist.jsp, which has</p>
  
  <pre><code>&lt;c:forEach items="${countryList}" var="country"&gt;
  
          &lt;br /&gt;
          &lt;td&gt;&lt;a href="cities/${country.id}"&gt;${country.name}&lt;/a&gt;&lt;/td&gt;
      &lt;/c:forEach&gt;
  </code></pre>
  
  <p>so it print me countries(with url) when Im clicking country url, it redirect me to rightly localhost/myproject/cities/(id of country), but it show me error 404 - resource is not available.  How I can solve it? And this function of my webapp I need to do with RequestMapping or I need to use anotherway? Thanks for your help!</p>