EL 연산자
기호 연산자 | 단어 연산자 |
+ | |
- | |
* | |
/ | div |
% | mod |
&& | and |
|| | or |
! | not |
> | lt (less than) |
< | gt (greater than) |
>= | le (less or equal) |
<= | ge (greater or equal) |
== | eq (equal) |
!= | ne (not equal) |
${empty 데이터명} |
JSTL - Core Library
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
종류 | 예시 |
<c:set> | <c:set var="num" value="100"> |
<c:out> | <c:out value="출력할값" default="value가 null일 경우 출력할 값"> |
<c:remove> | <c:remove var="변수명" scope="영역"> |
<c:if> | <c:if test="조건식" var="검사 후 return boolean 값을 저장할 변수"> |
<c:choose> | <c:when test="조건식"> <c:otherwise> |
<c:forEach> | <c:forEach begin="시작값" end="끝값" step="증가값" var="count값이 저장될 변수"> <c:forEach var="변수" items="배열/콜렉션"> |
<c:forTokens> | <c:forTokens items="배열/콜렉션" delims="구분자" var="" begin="" end="" step=""> |
<c:catch> | <c:catch> (java의 try문 역할) |
참고 블로그
'BACK > Servlet, jsp' 카테고리의 다른 글
Servlet & jsp 06 (0) | 2024.07.02 |
---|---|
Servlet & jsp 05 (0) | 2024.07.01 |
EL & JSTL 01 (0) | 2024.06.27 |
Servlet & jsp 04 (0) | 2024.06.12 |
Servlet & jsp 03 (0) | 2024.06.05 |