The parameter "path" is added to the model
[demos/testing] / src / main / resources / templates / home.html
index 6076f98..c36c5ef 100644 (file)
@@ -9,5 +9,14 @@
     <div class="card-text">
       <pre th:text="${text}">TEXT</pre>
     </div>
+    <div class="card-text">
+      <form action="#" th:action="@{/}" method="get">
+        <div class="form-group">
+          <label for="path">Remote-Path to fetch:</label>
+          <input type="text" name="path" value="FOO" th:value="${path}" class="form-control" />
+        </div>
+        <button type="submit" class="btn btn-primary">Submit</button>
+      </form>
+    </div>
   </body>
 </html>