【发布时间】:2017-10-09 10:59:15
【问题描述】:
我的 jsp 文件中有以下 while 循环:
<%
List sorts = (List)request.getAttribute("sorts");
Iterator it = sorts.iterator();
while(it.hasNext()) {
out.print(it.next());
}
%>
如何在此处使用表达式语言避免 JSP 文件中的 Java 代码?
我尝试将it.next()) 参数保存在变量中,但没有成功。
【问题讨论】: