title: same URL for a POST and GET method. How to choose which one when linking to the URL?
body: <p>I have a GET and a POST method that I want to control which one to use. They are the following:</p>
  
  <pre><code>@RequestMapping(value="/greeting", method=RequestMethod.GET)
      public String greetingForm(Model model) {
          model.addAttribute("greeting", new Greeting());
          return "greeting";
      }
  
      @RequestMapping(value="/greeting", method=RequestMethod.POST)
      public String greetingSubmit(@ModelAttribute Greeting greeting, Model model) {
          model.addAttribute("greeting", greeting);
          return "result";
      }
  </code></pre>
  
  <p>The GET method starts an HTML file greetings.html and the POST method starts result.html.
  As you can see they both have the same path (/Greeting). </p>
  
  <p>In another HTML file I want to be able to link to /greetings but I want to be able to choose either the GET or the POST method. Is that possible?</p>
  
  <p>This code is from another html file where I want to link to either the GET or the POST method:</p>
  
  <pre><code>&lt;a href="/greeting"&gt;Go to greetings.html &lt;/a&gt; 
  &lt;a href="/greeting"&gt;Go to result.html&lt;/a&gt;
  </code></pre>
  
  <p>How can these links for the first to link to the GET method and the second to the POST method while keeping them on the same url?</p>