首先你的页面导入了C标签吗?没有的话,右键你的项目 MyEclipse->add JSTL libraries.
在你要循环的页面在第一行 导入
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
然后在要循环的地方用
${list.UserName} |
Struts框架?您说的不清楚的 那我只能抛弃任何框架直接告诉你foreach list 集合,然后《%System.out.println( item );%》