Q:

thymeleaf strings is not empty

<p th:text="${#strings.isEmpty(string)}"></p>
<p th:text="${#strings.isEmpty(nullString)}"></p>
<p th:text="${#strings.defaultString(emptyString,'Empty String')}"></p>
0
<div th:if= "${searchResults.results != ''}">
0
<div th:if= "${searchResults.results != null}">
0

New to Communities?

Join the community