freemarker嵌套循环怎么写

freemarker嵌套循环怎么写,第1张

<c:forEach var="each" items="${typeProList}" begin="0" end="0">
<c:forEach var="product" items="${eachproList}" begin="0" end="1">
<div class="bot_right_pro_1">
<div class="pro_1_1"><a href="${pageContextrequestcontextPath }/s/productshtmlmethod=productinfo&proid=${productid }"><img src="${pageContextrequestcontextPath }<%=SConstantsCEM_UPLOAD_PRODUCT_PATH %>${productpicurl }" title="${productname }" width="90" height="90"/></div>
<div class="pro_title"><a href="${pageContextrequestcontextPath }/s/productshtmlmethod=productinfo&proid=${productid }" title="${productname}"><strong><shopping:TagUtil type="string" begin="0" end="5" target="${productname}"/></strong></a></div>
<div class="pro_title"><img src="${pageContextrequestcontextPath}/images/huigou/icon_2jpg" /><strong><span class="red">${producthmprice }元</span></strong></div>
</div>
</c:forEach>
</c:forEach>
这是我根据以上写的ftl(freemarker 标签写的)
<#if typeProListexists>
<#list typeProList[00] as each>
<#list eachproList[01] >

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/13365209.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-22
下一篇 2023-07-22

发表评论

登录后才能评论

评论列表(0条)

保存