Thymeleaf dynamic form action url
问题 <thymeleaf.version>3.0.9.RELEASE</thymeleaf.version> <thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version> Springboot How to construct expression for th:action "action url" in form? Url depends on "name" variable. I'm trying like this, but it's not working: <form method="get" th:action="@{'/' + {baseUrl}(baseUrl=${#strings.isEmpty(name) ? '' : 'user/find/'})}"> <input type="text" th:value="${name}"/> <button type="submit">Find</button> <button type="button" th:classappend