title: How do I map different values for a parameter in the same @RequestMapping in Spring MVC?
body: <p>Suppose I have:</p>
  
  <pre><code>@RequestMapping(params = "action=nuovoprodotto")    
      public ModelAndView nuovoProdotto(
              @RequestParam(value = "page", required = false, defaultValue = "-1") int page,
              @RequestParam(value = "action") String action,
              @ModelAttribute Prodotto prod, HttpSession session)
              throws Exception {
  </code></pre>
  
  <p>is it possible to map this request to like two or three values of "action" parameter?</p>
  
  <p>I tried many ways like </p>
  
  <pre><code>@RequestMapping(params = "action=nuovoprodotto, action=salvaprodotto")  
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@RequestMapping(params = "action=nuovoprodotto|salvaprodotto")  
  </code></pre>
  
  <p>but they don't work... If I can't what are the solutions, besided writing an handler for every single parameter value combination?</p>