Home > Java > javaTutorial > body text

How to traverse data in jsp

(*-*)浩
Release: 2019-05-24 14:56:53
Original
5425 people have browsed it

jsp page traversal output, mainly using tags similar to for and foreach loops. The following are the usages I have seen so far:

How to traverse data in jsp

The attributes of the c:forEach tag of jstl: used for general data loop,

its attributes:

items (attribute): for looping Project (description), no (whether required), none (default value)

var: variable name representing the current project, no, none

varStatus: variable showing the loop status, no, none

begin: start condition, no, 0

end: end condition, no, the last item in the set

step: step size, no, 1

varStatus in jstl is the same as the var attribute. varStatus is used to create variables with a limited scope. However, the variable named by the varStatus attribute does not store the current index value or the current element, but is assigned an instance of the javax.servlet.jsp.jstl.core.LoopTagStatus class. This class defines a set of properties that describe the current state of the iteration.

These properties are listed below:


Current object

The above is the detailed content of How to traverse data in jsp. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
jsp
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template