el表达式在<% %>中使用
<c:forEach items="${listp}" var="answer" varStatus="i" begin="0" end="1">
<c:if test="${answer.ISBEST!=1 && !empty answer.ANSWERERNAME }">
<div class="huati_pinglun_line">
<div class="hudong_pinglun_left">
<div class="hudong_pinglun_photo">
<a href="#"><img src="${pageContext.request.contextPath}${answer.ICON }" width="67" height="67" /></a>
</div>
<div class="hudong_pinglun_zi">
<div class="hudong_pinglun_zi1">
${answer.ANSWERERNAME }
</div>
<div class="hudong_pinglun_zi2">
${answer.ACREATORID }
<%
Map ans = (Map)pageContext.getAttribute("answer");
Long userid = Long.parseLong(ans.get("ACREATORID").toString());
%>
等级:<%=com.peaktele.core.user.util.UserUtil.getKSPointGradeByUsrId(userid).getPgName()%>
</div>
# 上一篇: c:forEach跳出循环两种解决方法
# 下一篇: java把多个文件打成zip压缩包
文章评论 (0)
暂无评论