title: Spring mvc url parameter
body: <p>I cannot display may restaurant.
  I.ve got my controller class:</p>
  
  <pre><code>@Controller
  public class RestaurantController extends MultiActionController{
  
      private RestaurantDAO restaurantDAO;
  
      public void setRestaurantDAO(RestaurantDAO restaurantDAO) {
          this.restaurantDAO = restaurantDAO;
      }
  
  
      @RequestMapping("/restaurant/{restaurantId}")
      public ModelAndView restaurantid(@PathVariable("contactId") int id, 
           HttpServletRequest request,
           HttpServletResponse response) throws Exception {
  
         Restaurant restaurant = restaurantDAO.findRestaurantById(id);
         ModelMap modelMap = new ModelMap();
         modelMap.addAttribute("restaurant", restaurant);
         return new ModelAndView("restaurant", modelMap);
      }
  }
  </code></pre>
  
  <p>im my jsp just:</p>
  
  <pre><code>&lt;c:out value="${restaurant.name }"
  </code></pre>
  
  <p>in my spring-servlet.xml:</p>
  
  <pre><code>&lt;bean name="/restaurant/**" class="web.RestaurantController" &gt;
  &lt;property name="restaurantDAO" ref="myRestaurantDAO"/&gt; 
  &lt;/bean&gt;
  </code></pre>