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
If You don't want to use string concatenation (proposed by Sotirios), You can use expression preprocessing in URL link: