title: What is the Syntax to get Thymeleaf ${pageContext.request.contextPath}
body: <p>I have searched hard for a syntax like the JSTL one <code>${pageContext.request.contextPath}</code>,<br>
  <br/>
  I did made a javascript code to change the action attribute on the form to call the edit method on the spring controller so, the problem is the below code dont work without calling the Context first like <code>${pageContext.request.contextPath}/edit.html</code>    </p>
  
  <pre><code>&lt;script th:inline="javascript"&gt;
      function edit() {
          document.getElementById("user_form").action = "/edit.html";
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>so what is the Syntax to call <strong>Thymeleaf context path</strong>?</p>