Thymeleaf Conditional Evaluation Explained

This is post 4 of 4 in the series “Thymeleaf Tutorial” 1. Introduction In this post, we will learn how to use supported conditional statements to display web content using Thymeleaf. We will learn th:if, th:unless, th:switch, th:case and conditional expressions by examples. 2. Using th:if Tag Let’s create a method that…

Read more »

OOPs Way of Handling Checkboxes using Thymeleaf

This is post 3 of 4 in the series “Thymeleaf Tutorial” 1. Introduction In this tutorial, we will learn how to display/submit checkboxes in Thymeleaf by following Object Oriented Programming approach. We will create an input form and use a model object to submit form data to a Spring Controller….

Read more »

OOPs way of Handling Radio Buttons using Thymeleaf

This is post 2 of 4 in the series “Thymeleaf Tutorial” 1. Introduction In this tutorial, we will learn how to display/submit radio buttons in Thymeleaf by Object Oriented Programming approach. We will create a model object that will be used by input form and finally submit it back to…

Read more »

Display Web Content using Thymeleaf

This is post 1 of 4 in the series “Thymeleaf Tutorial” 1. Introduction In this tutorial, we will learn how to use Thymeleaf to serve web content in a Spring Boot application. We will learn how to display different type of content from properties files and model attributes. 2. Display…

Read more »