Skip to content

Instantly share code, notes, and snippets.

@noriyukitakei
Created April 16, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noriyukitakei/d1f13bb5188a86064b2811d954425add to your computer and use it in GitHub Desktop.
Save noriyukitakei/d1f13bb5188a86064b2811d954425add to your computer and use it in GitHub Desktop.
Spring Web Flowによる今どきでないWebアプリケーション開発
<!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