다음은 동안입니다. 루프 예 -
<%! int fontSize; %>
<html>
<head>
<title>WHILE LOOP Example</title>
</head>
<body>
<%while ( fontSize <= 3){ %>
<font color = "green" size = "<%= fontSize %>">
JSP Tutorial
</font><br />
<%fontSize++;%>
<%}%>
</body>
</html> 위의 코드는 다음 결과를 생성합니다 -
JSP Tutorial JSP Tutorial JSP Tutorial