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
- pom.xml
- 트랜잭션
- 상속
- merge
- list
- mysql
- 이클립스
- 스프링
- Spring 개발환경 설정
- DI
- @transactional
- 영속성 컨텍스트
- @Bean
- react
- 어노테이션
- 깃허브
- Spring legacy Project
- 의존성주입
- 인터페이스
- springboot
- spring
- github
- 리액트
- 빈
- java
- JVM
- 스프링 컨테이너
- 자바
- 객체
- 자동주입
Archives
- Today
- Total
DEVLOG
jstl 사용법 본문
jstl 사용법
https://www.tutorialspoint.com/jsp/jsp_standard_tag_library.htm
JSP - Standard Tag Library (JSTL) Tutorial
JSP - Standard Tag Library (JSTL) Tutorial In this chapter, we will understand the different tags in JSP. The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates the core functionality common to many JSP appli
www.tutorialspoint.com
jstl 라이브러리를 복사하여 원하는 jsp 상단에 붙여넣기
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
pom.xml 의존성 설정
<!-- JSTL -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
jstl문법
<c:choose>
<c:when test="${empty sessionScope.principal}">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="/loginForm">로그인</a></li>
<li class="nav-item"><a class="nav-link" href="/joinForm">회원가입</a></li>
</ul>
</c:when>
<c:otherwise>
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="/board/form">글쓰기</a></li>
<li class="nav-item"><a class="nav-link" href="/user/form">회원정보</a></li>
<li class="nav-item"><a class="nav-link" href="/logout">로그아웃</a></li>
</ul>
</c:otherwise>
</c:choose>
'Spring Boot' 카테고리의 다른 글
[Thymeleaf] @RequestParam, @PathVariable 예제 (0) | 2022.07.20 |
---|---|
PSA (Portable Service Abstraction) 개념 (0) | 2022.06.30 |
Ajax를 사용하는 이유 첫 번째 (0) | 2022.06.28 |
스프링 기본파싱전략과 json통신 (0) | 2022.06.27 |
enum 사용법 (0) | 2022.06.25 |
Comments