<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>For Each Test</title>
</head>
<body>
<%
String[] str = {"j", "i", "n", "i", "u", "s", "m", "a", "n"};
%>
<c:set var="arr" value="<%=str%>" />
<c:forEach var="i" items="${arr}">
<c:out value="${i}" />
</c:forEach>
</body>
</html>
result)
댓글 없음:
댓글 쓰기