I have the following code setting a variable in my controller:
model.set(\"type\", type);
In the thymeleaf view I want to construct a form
What you need it is:
Documentation:
Great help is here: http://www.thymeleaf.org/doc/articles/standardurlsyntax.html. What I used from there was:
You can also include parameters in the form of path variables similarly to normal parameters but specifying a placeholder inside your URL’s path:
... What’s more: an URL expression like: