title: How can I send me parameter to the front in Thymeleaf
body: <p>I am trying to send my <code>int x</code> to the front, after clicking submit input, but it is giving me <strong>errors 404 not found.</strong></p>
  <p>Here is my Thymeleaf page with submit input:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;form  th:action=&quot;@{/timetracking/compensatory/make-zero}&quot; method=&quot;get&quot;&gt;
       &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
  &lt;/form&gt;
  &lt;p&gt;Events&lt;span th:text=&quot;${login}&quot;&gt;Stopped events&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  <p>And my controller:</p>
  <pre class="lang-java prettyprint-override"><code>@RequestMapping(value = &quot;/timetracking/compensatory/make-zero&quot;,method = RequestMethod.GET)
  public Model home(Model model ) {
      try {
          int x = employeeEventRepository.setToZero();
          model.addAttribute(&quot;login&quot;,x);
      }
      catch (Exception e){
          System.out.println(e);
      }
      return model;
  }
  </code></pre>
  <p>What I am doing wrong here, I have tried so many times, but my button is not working.</p>