Top "Thymeleaf" questions

Thymeleaf is an XML/XHTML/HTML5 template engine (extensible to other formats) that can work both in web and non-web environments.

Thymeleaf print JSON string as JSON object into a javascript variable

In Specific I need a way to print JSON representation of a string value into the html page via thymeleaf. …

java javascript json spring-mvc thymeleaf
Conditional attribute using thymeleaf

I know how to make a conditional attribute inside a tag on jstl: <body <c:if test="${userCreated}"&…

jsp thymeleaf
Loading static resources with Spring Boot and Thymeleaf

I want to get my static resources loaded. First I thought it already works, but that was just a trick …

configuration spring-boot thymeleaf static-resource
Including JavaScript variable inside thymeleaf

How do I include a JavaScript variable inside thymeleaf for checking a condition? Tried: <div th:if="${myVariable == 5}"> //…

java html spring web thymeleaf
sec:authorize and sec:authentication annotations don't work

I have a Spring + Thymeleaf project with the following view code. <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/…

spring-mvc spring-security thymeleaf
Thymeleaf + Spring : How to keep line break?

I'm using Thymeleaf template engine with spring and I'd like to display text stored throught a multiline textarea. In my …

spring thymeleaf spring-el
Can I make HTTP POST request from Thymeleaf table in Spring Boot application

I have a Thymeleaf template in a simple Spring Boot application. The template contains a list in a table as …

html http-post thymeleaf http-get
Difference between Thymeleaf include and replace?

What is the difference between the two Thymeleaf attributes: th:include and th:replace?

thymeleaf
Thymeleaf with Spring Security - how to check if user is logged in or not?

I'm using Spring Boot with Thymeleaf and Spring Security. I've got a simple view with a login link. When the …

spring spring-mvc spring-security thymeleaf
Using both Thymeleaf and JSP

I was using JSP + JSTL but I'm boring of c:if, c:choose, ... So, I want my JSP pages to …

spring jsp spring-mvc thymeleaf