Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
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
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter07 : JSTL 본문

JSP/JSTL

chapter07 : JSTL

GAWON 2023. 5. 24. 18:42
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<c:set var="animals" value="사자,호랑이;사슴,곰;이구아나^뱀"/>
	
	<c:forTokens items="${animals }" delims=",;^" var="animal">
		${animal }<br>
	</c:forTokens>
</body>
</html>

'JSP > JSTL' 카테고리의 다른 글

chapter09 : JSTL(fn)  (0) 2023.05.24
chapter08 : JSTL1(fmt) / JSTL2(fmt)  (0) 2023.05.24
chapter06 : JSTL1 / JSTL2  (0) 2023.05.24
chapter05 : JSTL1 /JSTL2  (0) 2023.05.24
chapter04 : JSTL1 / JSTL2  (0) 2023.05.24