여러개 항목중 비어있지 않는 값을 고르는 코드
<c:choose>
<c:when test="${not empty result.firstbornSeconddate}">
<td><c:out value="${result.firstbornSeconddate}"/></td>
</c:when>
<c:when test="${not empty result.secondbornSeconddate}">
<td><c:out value="${result.secondbornSeconddate}"/></td>
</c:when>
<c:when test="${not empty result.thirdbornSeconddate}">
<td><c:out value="${result.thirdbornSeconddate}"/></td>
</c:when>
<c:otherwise>
<td></td>
</c:otherwise>
</c:choose>
'look up' 카테고리의 다른 글
마이크로오피스 설치, 정품인증하기 (0) | 2024.02.02 |
---|---|
작업중인 프로젝트를 바꿨는데 css가 적용안된 상태로 보일때 (0) | 2023.02.03 |
이클립스 오류) - 404창 떴을때 (0) | 2023.02.03 |
오류) 버튼을 눌렀을때 실행안되는 오류 (0) | 2023.01.31 |
검색 엔진에 내사이트 등록 (0) | 2022.11.10 |