The JSTL Core Tag is used when a block of statements is executed again and again. It works same as for loop in java.
Syntax:
c:forEach tag attributes:
Attribute | Description | Required |
items | Information to loop over. | No |
begin | Element to start with (0 = first item, 1 = second item, …). | No |
end | Element to end with (0 = first item, 1 = second item, …). | No |
step | Process every step items. | No |
var | Name of the variable to expose the current item. | No |
varStatus | Name of the variable to expose the loop status. | No |
Example:
test.jsp
web.xml
No comments:
Post a Comment