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/a39f814f1ac6cdf9acc6cdde7152aef4 to your computer and use it in GitHub Desktop.
Save noriyukitakei/a39f814f1ac6cdf9acc6cdde7152aef4 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>
<!-- ${flowExecutionUrl}は、次のViewに遷移するためのURLを自動生成します。Spring Web Flowでは
必ず遷移先のURLに必ずこれを指定して下さい。 -->
<form th:action="${flowExecutionUrl}" method="POST">
タイトル:<input type="text" name="title" /><br />
<!-- ここで定義した_eventId_searchのsearchの部分は、
Flow定義ファイル(flow-bbs.xml)の<view-state id="top"・・・>・・・</view-state>要素内にある
<transition on="search" to="searchAction"/>要素のon属性であるsearchに対応しています。 -->
<input type="submit" name="_eventId_search" value="検索" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment