<c:forEach var="specialsalvation" items="${result}">
  <tr>${selectslist}
   <c:forEach var="types" items="${selectslist}" >
     <td>${types}&nbsp; </td>
    </c:forEach>
     <td>${specialsalvation.familys}&nbsp; </td>
     
     <td>${specialsalvation.persons}&nbsp; </td>
    <td align='center'>
</td>
  </tr>
  </c:forEach> 
我想用${types}出来的值,做specialsalvation的KEY ,result存的是MAP,selectslist存的是STRING

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【wypx168】截止到2008-07-01 13:40:51的历史汇总数据(不包括此帖):
    发帖数:0                  发帖分:0                  
    结贴数:0                  结贴分:0                  
    未结数:0                  未结分:0                  
    结贴率:-------------------结分率:-------------------
    如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
      

  2.   

    <c:forEach var="specialsalvation" items="${result}"> 
    <c:forEach var="types" items="${selectslist}" > 
    <c:if test="${specialsalvation.familys==types}">
      <tr>  
        <td>${specialsalvation.persons}&nbsp; </td>
      </tr> 
        </c:if>
       </c:forEach> 
      </c:forEach>    
      

  3.   

     我想要的正确答案:${specialsalvation[types]}