Advertisement
ivana_andreevska

categories.html

Nov 10th, 2022
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  2. <head>
  3. <title>Categories</title>
  4. <meta charset="UTF-8">
  5. </head>
  6. <body>
  7. <h2>Info about our request</h2>
  8. <div>IP Address
  9. <th:block th:text="${ipAddress}"></th:block>
  10. </div>
  11. <div>Client Agent
  12. <th:block th:text="${clientAgent}"></th:block>
  13. </div>
  14. <h2>Categories</h2>
  15. <ul>
  16. <li th:each="cagory : ${categories}">
  17. <th:block th:text="${cagory.getName()}">
  18. </th:block>
  19.  
  20. </li>
  21. </ul>
  22.  
  23. <h3>Add New Category</h3>
  24. <form th:method="POST" th:action="@{/servlet/thymeleaf/category}" >
  25. <label for='name'>Name:</label>
  26. <input id='name' type='text' name='name'>
  27. <label for='desc'>Description:</label>"
  28. <input id='desc' type='text' name='desc'>
  29. <input type='submit' value='Submit'/>
  30. </form>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement