【发布时间】:2015-03-04 08:36:16
【问题描述】:
我有一个导入接口的 JSP。该接口有一个String[] QUESTION_ARRAY。
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="com.mypackage.message.Questions"%>
<table>
<c:forEach var="question" items="<%=Questions.QUESTION_ARRAY%>" varStatus="ctr">
<tr>
<td><%=Questions.QUESTION_ARRAY[ctr.index]%></td>
</tr>
</c:forEach>
</table>
在[ctr.index] 中,表示ctr 未解决。如何在表达式中访问它?
【问题讨论】: