webapgeをレンダリングしようとして、model.addAttributeで追加されたthymleaf属性 "url"を使用しようとしましたが、属性がHTMLドキュメントに表示されません。ここでThymleaf - htmlドキュメントのmodel属性を呼び出す方法
/templates/webpage/document.html
@RequestMapping(value = "/webpage/document")
public String document(HttpServletRequest req, Model model) {
model.addAttribute("dialogurl", url);
return "/webpage/document";
}
データをバインドするHTMLドキュメント
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" th:include="wrapperdialog :: page">
<head>
<title></title>
</head>
<body>
<div th:fragment="content">
<div class="container dialogpage">
<div class="row">
<div class="col-md-12">
<div id="typeform" th:attr="data-url=*{dialogurl}">
</div>
</div>
</div>
</div>
</div>