Thymeleaf th:switch th:case

Posted by dogukanhan on September 03, 2018 · 1 min read

variable=dogukan icin

<div th:switch="${variable}">
	<p th:case="'dogukan'"> Dogukan </p>
	<p th:case="'onur'"> Onur</p>
	<p th:case="*"> Hicbiri </p>
</div>
<div>
   <p> Dogukan </p>	
</div>