Evaluate list.contains string in JSTL
Posted
by Support - multilanguage SO
on Stack Overflow
See other posts from Stack Overflow
or by Support - multilanguage SO
Published on 2009-09-29T01:28:55Z
Indexed on
2010/06/08
16:12 UTC
Read the original article
Hit count: 195
I need to hide an element if certain values are present in the JSP
The values are stored in a List so I tried:
<c:if test="${ mylist.contains( myValue ) }">style='display:none;'</c:if>
But, it doesn't work.
How can I evaluate if a list contains a value in JSTL, the list and the values are strings.
© Stack Overflow or respective owner