Url with pathvariable
See original GitHub issueAdd support to pathvariable style to URL syntax, like spring:url tag, example:
<a th:href="@{/order/details/{id}/{action}(id=3,action='show_all')}">
output:
<a href="/order/details/3/show_all">
Issue Analytics
- State:
- Created 11 years ago
- Comments:24 (15 by maintainers)
Top Results From Across the Web
Spring mvc @PathVariable - Stack Overflow
I'm struggling in getting the right url to show the jsp page. Thanks. spring-mvc · Share.
Read more >Spring @PathVariable - read URI template variable ... - ZetCode
@PathVariable is a Spring annotation which indicates that a method parameter should be bound to a URI template variable. If the method parameter ......
Read more >Spring @PathVariable Annotation - Baeldung
Simply put, the @PathVariable annotation can be used to handle template variables in the request URI mapping, and set them as method parameters....
Read more >Enhancing the Hello World Service with a Path Variable
The @PathVariable annotation is used to extract the value from the URI. It is most suitable for the RESTful web service where the...
Read more >When Should You Use Path Variable and Query Parameter?
Also, you can get side effects. You don't have to define other URL and other query parameter to achieve basic CRUD functions.You change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it would be useful to have a method like this:
(where Object has properties “id” and “action”) which output the url as “/order/details/3/show_all”.
What do you think?
@JetForMe @tholu plese note that, as of today, Thymeleaf should allow you to use a literal substitution there like
th:href="@{|/users/${user.id}|}