Created
April 16, 2018 15:08
-
-
Save noriyukitakei/d1f13bb5188a86064b2811d954425add to your computer and use it in GitHub Desktop.
Spring Web Flowによる今どきでないWebアプリケーション開発
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="http://www.w3.org/1999/xhtml" | |
xmlns:th="http://www.thymeleaf.org" | |
xmlns:tiles="http://www.thymeleaf.org" | |
xmlns:sec="http://www.thymeleaf.org" lang="jp"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>検索画面</title> | |
</head> | |
<body> | |
検索結果 | |
<table border="1"> | |
<tr> | |
<th>タイトル</th> | |
<th>メッセージ</th> | |
</tr> | |
<!-- ${searchResult}は、Flow定義ファイル(flow-bbs.xml)の | |
<action-state id="searchAction">・・・</action-state>要素内の | |
<set name="flowScope.searchResult"・・・>要素で指定したsearchResultに | |
対応していて、検索結果が${searchResult}に格納されます。 | |
--> | |
<tr th:each="message : ${searchResult}"> | |
<td th:text="${message.title}">hoge</td> | |
<td th:text="${message.body}">fuga</td> | |
</tr> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment