Created
April 23, 2018 21:49
-
-
Save fuchodeveloper/a040efa13aa59bf3f8ddb162e67df6f2 to your computer and use it in GitHub Desktop.
Form to enter user details
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html xmlns:th="http://www.thymeleaf.org"> | |
<head> | |
<title>Say hello in Spring</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<h1>Enter first and last names</h1> | |
<form action="#" th:action="@{/hello}" th:object="${hello}" method="post"> | |
<p>First: <input type="text" th:field="*{firstName}" /></p> | |
<p>last: <input type="text" th:field="*{lastName}" /></p> | |
<p> | |
<input type="submit" value="Submit" /> | |
<input type="reset" value="Reset" /> | |
</p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment