title: How to put RequestParam value as URL
body: <p>I have some input fields in my jsp page,l want to know is it possible for values passed in those fields to be passed as URL.</p>
  
  <p>I tried using @RequestParam and @PathVariable on same variable to try to retrive it and put it as URI but it didnt work </p>
  
  <p>This is my jsp page form:</p>
  
  <pre><code>&lt;body&gt;
   &lt;form action="welcome/" method="post"&gt;
    &lt;input type="text" name="name" value=""&gt;
    &lt;input type="submit"  value="go"&gt;
   &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And this is my Controller handler method:</p>
  
  <pre><code>@PostMapping(value = "/welcome/{name}")
  public String welcomeAgain(@PathVariable @RequestParam("name")String name){
      return "welcome";
  }
  </code></pre>