Tell me if I have an ArrayList with user objects.
User.java
class User{
private Long id;
private String name;
}
I have a list of users
list.add(new User(1,"John");
list.add(new User(2,"Sam");
I want to check thymeleaf if the List user has a user named "Sam".
${
But the above does not work and throws Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression
I also tried with "(Doube quotes)
Lucky source
share