title: Calling a specific action in a controller
body: <p>I have a controller with 2 actions like these:</p>
  
  <pre><code>@Controller
  @RequestMapping("xyzlogin")
  public class XyzloginController 
  {
    @RequestMapping(method = RequestMethod.GET)
      public ModelAndView showForm(HttpServletRequest request, ModelMap model) 
      {
           //.... do something....
      }
  
    @RequestMapping(value = "/requestXYZ", method = RequestMethod.GET)
      public ModelAndView requestXYZ(HttpServletRequest request, ModelMap model) 
      {
           //.... do something with parameter param1.
      }    
  }
  </code></pre>
  
  <p>In a view file I have the following ways to request an action in this controller:</p>
  
  <pre><code>&lt;a href="requestXYZ?param1=abc"&gt;Click me to call requestXYZ action&lt;/a&gt;
  </code></pre>
  
  <p>As noted in the example above, upon clicking the hyperlink, I want to call requestXYZ action, but I am getting a 404 error instead, saying that it cannot find the mapping.</p>
  
  <p>Am I defining the mapping wrong? What is the correct mapping?</p>
  
  <p>Thanks,</p>