Post
KO

jstl forEach문

begin = 어디부터 end = 어디까지 step = 얼마씩 증가 index값 -- count 하면 1부터 세짐. varStatus 첨자값임 -> 값 이름 짓기.이름짓기 하면 for문 돌면서 begin부터 end까지 찍힘 JSTL 문법의 for문 사용법 status 는 for문의 돌아가는 상태를 알 수 있게 체크하여 준다 #{status.current}   현재의 for문에 해당하는 번호 #{status.index} 0부터의 순서 #{status.count} 1부터의 순서 #{status.first}  현재 루프가 처음인지 확인 #{status.last}  현재 루프가 마지막인지 확인 #{status.begin} for문의 시작 값 #{status.end}   for문의 끝 값 #{status.step}  for문의 증가값
This article is licensed under CC BY 4.0 by the author.