How to fix calling Java method using Thymeleaf?

后端 未结 1 1954
感动是毒
感动是毒 2021-01-27 07:04

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

相关标签:
1条回答
  • 2021-01-27 07:43

    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).

    0 讨论(0)
提交回复
热议问题