title: how to add variable to url in javascript and get using @PathVariable
body: <p>this is javascript code i want add integer to url</p>
  
  <pre><code>function editAdmin(id) {
      document.AdminSuccess.action="editAdmin?id="+id;
      document.AdminSuccess.submit();
  }
  </code></pre>
  
  <p>And this is my java method</p>
  
  <pre><code>@RequestMapping("/editAdmin/{id}")
  public String editAdmin(@PathVariable("id") int id,Model model) {}
  </code></pre>