jsp中<c:forEach varStatus="status">的属性值问题
2017-03-02 14:49
429 查看
c:forEach varStatus属性
current当前这次迭代的(集合中的)项
index当前这次迭代从 0 开始的迭代索引
count当前这次迭代从 1 开始的迭代计数
first用来表明当前这轮迭代是否为第一次迭代的标志
last用来表明当前这轮迭代是否为最后一次迭代的标志
begin属性值
end属性值
step属性值
写个最近使用过的小例子:
<c:forEachitems="${command.modelList}" var="model"varStatus="abc">
<tr>
<td><c:outvalue="${abc.count}"/></td>
<td class="model">
<form:checkbox path="select"value="${abc.index}"/>
<labelfor="model1">${model.modelName}</label>
<p>${model.modelDesc}</p>
</td>
<td>
<form:select path ="modelList[${abc.index}].positionIdx"onchange="selectPoss(this);">
<optionvalue="">请选择</option>
<form:option value="A"label="位置A"/>
<form:option value="B"label="位置B"/>
current当前这次迭代的(集合中的)项
index当前这次迭代从 0 开始的迭代索引
count当前这次迭代从 1 开始的迭代计数
first用来表明当前这轮迭代是否为第一次迭代的标志
last用来表明当前这轮迭代是否为最后一次迭代的标志
begin属性值
end属性值
step属性值
写个最近使用过的小例子:
<c:forEachitems="${command.modelList}" var="model"varStatus="abc">
<tr>
<td><c:outvalue="${abc.count}"/></td>
<td class="model">
<form:checkbox path="select"value="${abc.index}"/>
<labelfor="model1">${model.modelName}</label>
<p>${model.modelDesc}</p>
</td>
<td>
<form:select path ="modelList[${abc.index}].positionIdx"onchange="selectPoss(this);">
<optionvalue="">请选择</option>
<form:option value="A"label="位置A"/>
<form:option value="B"label="位置B"/>
相关文章推荐
- jsp中<c:forEach varStatus="status">的属性值问题
- jsp中<c:forEach varStatus="status">的属性值问题
- jsp中<c:forEach varStatus="status">的属性值问题
- <c:forEach varStatus="status">的属性值问题
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach items="${revertList}" varStatus="reverts" var="revert" > <dl >
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的作用
- <s:iterator value="pager.records" var="records" status="var">里的几个属性问题
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach var="credit" items="${creditVOList}" varStatus="status">输出序列在页面显示 form表单
- <c:forEach varStatus="status">中 varStatus的属性简介
- <c:forEach varStatus="status">中 varStatus的属性简介