Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- formgroup
- ApexChart
- mysql if
- TAILWIND
- angular button
- scroll
- egov spring ajax 사용 예시
- 셀렉트박스 커스텀
- Ionic modal
- summary
- 스크롤 이벤트 감지
- flex-1
- 앵귤러 애니메이션
- 호버
- 모달
- 옵저버블
- ajax 사용 예시
- angular animation
- route
- angular modal
- Oracle LISTAGG 사용 예시
- Angular Router
- 앵귤러 모달
- modal
- angular route
- 스크롤 이벤트
- 검색
- 아이오닉 스크롤 이벤트
- prisma
- Router
Archives
- Today
- Total
깜놀하는 해므찌로
Egov Spring 로그인 / 비로그인 시 메뉴 각각 다르게 뿌리기 본문
반응형
SMALL
<h2 class="hidden">주메뉴</h2>
<div id="gnb_area">
<nav id="gnb">
<ul class="depth2 clear">
<c:if test="${fn:length(allMenu) gt 0 }">
<c:forEach var="main" items="${allMenu }">
<c:if test="${(empty memberVO.meSeq and main.menuNm ne '마이홈') or (not empty memberVO.meSeq)}">
<li class="depth1_1">
<a href="${main.url }">${main.menuNm }</a>
<ul class="depthBox">
<c:forEach var="sub" items="${main.menuList }">
<li><a href="${sub.url }">${sub.menuNm }</a></li>
</c:forEach>
</ul>
</li>
</c:if>
</c:forEach>
</c:if>
</ul>
</nav>
</div>
1. JSTL <c:if> 활용
2. 조건 1 : 비로그인 상태이며 메뉴 이름이 마이홈이 아니라면 출력
3. 조건 2 : 로그인 세션이 있다면 출력
반응형
LIST
'IT' 카테고리의 다른 글
Egov Spring jsp select option 동적 설계 예시 (0) | 2022.07.09 |
---|---|
Egov Spring MyBatis MySQL Limit 페이징 처리 / Oracle ROWNUM (0) | 2022.07.08 |
JavaScript 핸드폰 번호 / 전화번호 / 사업자 번호 정규식 사용 예시 (0) | 2022.07.07 |
Interceptor 인터셉터 IP 차단 예시 (0) | 2022.07.07 |
Egov Spring annotation @ModelAttribute 어노테이션 설명 (0) | 2022.07.07 |