Evaluate list.contains string in JSTL

后端 未结 10 1202
青春惊慌失措
青春惊慌失措 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条回答
  •  猫巷女王i
    2020-12-07 14:57

    The following is more of a workaround than an answer to your question but it may be what you are looking for. If you can put your values in a map instead of a list, that would solve your problem. Just map your values to a non null value and do this style='display:none;' or you can even map to style='display:none; and simply output ${mymap.myValue}

提交回复
热议问题