<
logic:iterate
id
="chList"
name
="channelList"
scope
="request"
indexId
="index"
>
<
bean:write
name
="index"
/><
br
>
</
logic:iterate
>
上面的是书上的例子为什么不可以而下面的可以呢?
<
logic:iterate
id
="chList"
name
="channelList"
scope
="request"
indexId
="index"
>
<%
=
index
+
1
%>
<
br
>
</
logic:iterate
>
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
index 是从0开始的,所以.............