Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleExample 'tenant.html'
linenumberstrue
collapsetrue
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8" />
		<link rel="stylesheet" type="text/css" href="res/tenant.css" />
	</head>
	<body>
		<span id="container">
			<span>
				<h3>Type in your tenant.</h3><br>
				<form id="tenant" th:action="@{/tenant}" method="post">
					<input type="text" name="tenant" placeholder="Tenant" /><br>
					<img src="res/next-btn.svg" onclick="document.getElementById('tenant').submit()">
				</form>
			</span>
		</span>
	</body>
</html>

In the error.html file, the reference on http://www.thymeleaf.org (line 2) and the three span definitions are required (lines 8-10) in order to provide error details.

Code Block
languagexml
titleExample 'error.html'
linenumberstrue
collapsetrue
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8" />
</head>
	<body>
		An error has occurred <br /><br />
		<span th:text="${status}" /> (<span th:text="${reason}" />) <br />
		<span th:utext="${message}" /> <br />
		<span th:text="'timestamp: '+${timestamp}" style="display: none" />
	</body>
</html>

...