我想根据start
参数调用不同的控制器:
(参数start
为布尔值)
我尝试使用百里香框架实现此任务,但在这种情况下,他无法正常工作:
<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>