JSP排行问题

来源:百度知道 编辑:UC知道 时间:2024/06/27 05:42:09
我想要依据积分进行排行 积分高的在前 具体代码如下 希望把要修改的代码写下来 谢谢了

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:8px;">
<tr>
<td>
<img src="images/hale_014.gif" width="261" height="25" border="0" usemap="#MapMap" />
</td>
</tr>
<tr>
<td height="198" style="border-left:1px solid #D2D2D2; border-right:1px solid #D2D2D2; " class="range" valign="top">
<ul>
<c:if test="${not empty form.containerMap.shopLt}">
<c:forEach var="st" items="${form.containerMap.shopLt}" varStatus="vs">
<li>
<a href="${st.account}.html" target="_blank">

<c:if test="${not empty form.containerMap.shopLt}">
<c:forEach var="st" items="${form.containerMap.shopLt}" varStatus="vs">
<li>
<a href="${st.account}.html" target="_blank">
${st.shopcn}</a>(信誉:${st.credit};积分:${st.integral})
</li>
</c:forEach>

建议把shopLt用某个类按你的要求排个序再拿到页面上foreach,这样就可以了

containerMap.shopLt 这个是个什么东西泥。。LIST?
一般是查数据库时候进行倒序查询……