I am trying to call a method that returns a model and prints out a simple message to the console using Thymeleaf. However, I realize that whenever I setup the action to be calle
You have <button>
element inside <a>
element, meaning you have 2 clickable elements in the same place. Basically it is not valid HTML syntax. I suspect this could mess up with triggering an action.
Please remove
<button type="button" class="btn btn-primary modalPathContentBtn"
data-dismiss="modal">Continue</button>
from your view and provide any valid content instead (e.g. plain text Continue
).