I need to hide an element if certain values are present in the JSP
The values are stored in a List so I tried:
You need to use the fn:contains() or fn:containsIgnoreCase() function.
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
...
Doesn't contain 'apple'
or
Contains 'Apple'
Note:
This will work like mylist.toString().contains("apple") and if this is not what you are looking for better use a other approach.