Evaluate list.contains string in JSTL

后端 未结 10 1187
青春惊慌失措
青春惊慌失措 2020-12-07 14:08

I need to hide an element if certain values are present in the JSP

The values are stored in a List so I tried:



        
10条回答
  •  一向
    一向 (楼主)
    2020-12-07 14:36

    If you are using Spring Framework, you can use Spring TagLib and SpEL:

    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
    ---
    
    style='display:none;'
    

提交回复
热议问题