title: Thymeleaf th:href get other input field value?
body: <p>Here is my form, with input field email &amp; password</p>
  
  <pre><code>&lt;form class="form-signin" th:action="@{/login}" method="post"&gt;
      &lt;input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required="required" autofocus="autofocus" /&gt; 
      &lt;input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required="required" /&gt;
      &lt;button class="btn btn-lg btn-primary btn-block btn-signin" type="submit"&gt;Sign in&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to try Thymeleaf <code>th:href</code> to send get request with parameter,</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;a href="#" th:href="@{/user/forgot_password{email}(email=$(inputEmail).val())}" class="forgot-password"&gt; Forgot the password? &lt;/a&gt;
  </code></pre>
  
  <p>My Spring-Boot controller as below:</p>
  
  <pre><code>@RequestMapping(value = "/forgot_password", params = {"email!="}, method = RequestMethod.GET)
  public @ResponseBody RespCommon forgotPassword(
      @RequestParam(value = "email", required = true) String email) {
      userService.forgotPassword(email);
      return new RespCommon(ResultCode.SUCCESS, "Send forget password mail succeed");
  }
  </code></pre>
  
  <p>But it seems not working, can some share how to get other input field value, thanks a lot!</p>