Added an integration-test that tests the exception-handling
[demos/testing] / src / main / resources / templates / view.html
1 <!DOCTYPE HTML>
2 <html xmlns:th="http://www.thymeleaf.org">
3   <head>
4     <title>Template: view</title>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6   </head>
7   <body>
8     <h1>Deep Thought</h1>
9     <div th:switch="${answer}">
10       <p th:case="null">
11         <strong>What is the answer to the ultimate question of life, the universe and everything?</strong>
12       </p>
13       <ul th:case="*">
14         <li>Presented answer: <strong th:text="${answer}">ANSWER</strong></li>
15         <li>Outcome: <strong th:text="${outcome.get()}">OUTCOME</strong></li>
16       </ul>
17     </div>
18     <div>
19       <form action="#" th:action="@{/}" method="get">
20         <div>
21           <label for="answer">Answer:</label>
22           <input type="text" name="answer" value="42" th:value="${answer}"/>
23           <button type="submit">Submit</button>
24         </div>
25       </form>
26     </div>
27   </body>
28 </html>