Spring Boot Thymeleaf Could not parse as expression with an url -


i'm putting button on page 1 navigate page 2. page 1 , 2 on different controllers.

this code of button. pid id of project. p.id gives id of project. don't know problem here is.

            <td><a th:href="@{/projects/project/{pid}/clusters(pid=${p.id})" class="btn btn-info" role="button">clusters</a> </td>      org.thymeleaf.exceptions.templateprocessingexception: not parse expression: "@{/projects/project/{pid}/clusters(pid=${p.id})" (projects:53) 

you've missed 1 curly bracket @ end of expression

<a th:href="@{/projects/project/{pid}/clusters(pid=${p.id})}" class="btn btn-info" role="button">clusters</a> 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -