c:foreach 循環List map中是一個list


List<MxxzW>  splist=;
List<Map> tmpList = new ArrayList<Map>();
Map<Integer,List<MxxzW>> tmpMap =new HashMap();
tmpMap.put(1, splist);
tmpList.add(tmpMap);

c:foreach

<c:forEach items="${splist}"  var="map" varStatus="status">
                     	<ul>
                     		  <c:forEach items="${map}" var="entry"> 
							      <c:forEach items="${entry.value}" var="comment">  
							     	<li><a href="menuDetail.htm?mwmId=${comment.mwmId}"><img style="height:81px;width:115px;" src="${comment.rootNewsIconFilePath}" /></a></li>
							      </c:forEach> 
							  </c:forEach> 
                        </ul>
        		   		</c:forEach>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章