728x90
<c:if test="${channelName} ne ${getChannelName}">
<li class="nav-item"><a class="nav-link" href="/index/${getChannelName}"> ${getChannelName}</a></li>
</c:if>
test="${channelName} ne ${getChannelName}"
위에 if문 조건 test가 왜 안먹힐까? 하다 검색해보며 알아보다가 아래와 같이 수정하니 먹혔다.
<c:if test="${channelName ne getChannelName}">
<li class="nav-item"><a class="nav-link" href="/index/${getChannelName}"> ${getChannelName}</a></li>
</c:if>
test="${channelName ne getChannelName}"
알고보면 쉬운건데 흠..
728x90
'Spring (boot) 오류 해결' 카테고리의 다른 글
스프링 URI 한글 깨짐 문제 (0) | 2022.02.20 |
---|---|
JSP 날짜 변환 에러(게시판, 오늘 게시글 날짜 구분하기) (0) | 2022.02.19 |
[Spring] Request method 'GET' not supported 라는 에러, @PathVariable 기본값 설정하기 (0) | 2022.02.17 |
Error evaluating expression . Return value ) was not iterable. (0) | 2022.02.17 |
Servlet.service() for servlet [jsp] threw exception//주석을 달려고 choose태그 간격을 띄웠더니 에러가 떴다. (0) | 2022.02.17 |
댓글