我想根据start参数调用不同的控制器:
(参数start是布尔值)
我正在尝试使用 thymeleaf 框架来执行此任务,但在这种情况下他无法正常工作:
<div class="w3-container" align="center">
<input class="w3-input w3-border" name="competition" type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for competitions.." title="Type in a competition name">
<form th:if="${start}" action="/challenger" method="post">
<form th:if="${!start}" action="/competition" method="post">
.............
........
<input class="w3-button" type="submit" value="Go"/>
</form>
</form>
</div>