I want to build a page with Thymeleaf fragments, which are rendered dynamically depending on the followed link. And I have an issue with resolving fragments names in runtime through the Spring controller. Here is the minimal reproductive example to show what I mean. I have list.html page with two links List 1 and List 2 with pic and code
Tag: templates
Looking for a template engine which supports JsonPath (Java)
I’m developing a microservice (let’s call it email microservice) which generates emails from HTML templates. Basically, the client sends a json with some data to the email microservice, and based on that data it has to generate an email (populate fields in html template with values coming in the json). The client is our other microservice, which prepares json and
Thymeleaf: how to get URL attribute value
I can’t find any solution for getting attribute from URL using Thymeleaf. For example, for URL: I need to get “error” attribute value. Also I’m using SpringMVC, if it could be helpful. Answer After some investigation I found that it was Spring EL issue actually. So complete answer with null checking is: