티스토리 뷰

공부

[Java] JSTL foreach

seunggabi 승가비 2020. 2. 21. 23:20
<c:set var="contains" value="false" />
<c:forEach var="item" items="${myList}">
  <c:if test="${item eq myValue}">
    <c:set var="contains" value="true" />
  </c:if>
</c:forEach>

https://stackoverflow.com/questions/1490139/evaluate-list-contains-string-in-jstl

'공부' 카테고리의 다른 글

[Python] Get OS  (0) 2020.02.21
[JS] jQuery datepicker  (0) 2020.02.21
[Java] JSTL foreach  (0) 2020.02.21
[Java] 1.0E-4 to 0.0001  (0) 2020.02.21
[Java] read in HDFS files  (0) 2020.02.21
[Java] Collection.joining()  (0) 2020.02.13
댓글
댓글쓰기 폼