【发布时间】:2012-04-23 11:38:55
【问题描述】:
我已将数组 userName[][] 从 servlet 转发到 JSP。我可以访问像${userName[2][3]} 这样的数组元素,但我不能使用变量遍历数组。例如${userName[i][j]} 或 ${userName[<%=i>][<%=j>]} 不工作。
另外,我应该将我的索引变量声明为 var(JS),因为我的代码也使用 JS 从数组中绘制图形,还是需要使用 JSTL?我是 JSP 的新手
【问题讨论】:
标签: arrays jsp servlets printing jstl