这是我的JSTL代码。你帮我纠正这段代码。
<c:set var="answer" value="${N}"/>
<c:set var="level" value="${Firm Level}"/>
<c:if test="${not empty objBrokerVO}">
<c:forEach var="objAccessVO" items="${AccessVO}">
<TR>
<TD WIDTH="200"><c:out value="${objAccessVO.SiteDesc}"/></TD>
<c:if test="${objAccessVO.getAccess=='F'}">
<c:out var="answer" value="${Y}"/>
<c:choose>
<c:when test="${objAccessVO.getAccess=='G'}">
<c:out var="answer" value="${Y}"/>
<c:out var="level" value="${Granted User Level}"/>
</c:when>
<c:when test="${objAccessVO.getAccess=='N'}">
<c:out var="answer" value="${N}"/>
</c:when>
<c:when test="${objAccessVO.getAccess=='R'}">
<c:out var="answer" value="${N}"/>
<c:out var="level" value="${Revoked User Level}"/>
</c:when>
</c:choose>
</c:if>
<TD ALIGN="CENTER" WIDTH="75"><B><c:out value="${answer}"/></B></TD>
<TD ALIGN="CENTER" WIDTH="150"><B><c:out value="${level}"/></B></TD>
</TR>
</c:foreach>
</c:if>
</TABLE>
</c:if>
答案 0 :(得分:0)
如果你想在这里使用JSTL迭代Vector,你就去..
<c:forEach var="person" items="personVector">
<c:out value="${person.name}" />
</c:forEach>