标题:<tag:if test="${status.index%2==1 }"> 此处提示/tr没有开始标签</tag:i ...
只看楼主
sharbin
Rank: 1
等 级:新手上路
帖 子:5
专家分:2
注 册:2011-5-6
结帖率:100%
 问题点数:0 回复次数:0 
<tag:if test="${status.index%2==1 }"> 此处提示/tr没有开始标签</tag:if
<tag:if test="${status.index%2==1 }">
    </tr>
   </tag:if>
为什么提示tr没有开始标签,但我百分百肯定有的呀,而且嵌套也没问题        下面是代码
<tag:forEach var="currentFood" items="${sessionScope.foods } varStatus="status">
 
   <tag:if test="${status.index%2==0 }">
  <tr>
   </tag:if>
      <td width="313">
      <table height="151" border="0" style="left: 607px;">
        <tr>
          <td width="119" rowspan="3"><a href="details.jsp?foodId=${currentFood.foodID} } %>"><img src="images/${currentFood.foodImage}" width="114" height="111"></a></td>
          <td height="26" colspan="2"><A href=# target=_blank><STRONG>${currentFood.foodName }</STRONG></A></td>
          </tr>
        <tr>
          <td height="28" colspan="2"><FONT color=#ff0000>现价:人民币${currentFood.foodPrice }</>元</FONT><BR>
            <a href="#">${currentFood.remark }</a></td>
          </tr>
        <tr>
          <td height="67" colspan="2">&nbsp;</td>
          </tr>
        <tr>
          <td height="28">编号: ${currentFood.foodID }</td>
          <td width="71" align="center"><img src="images/buy_cn.gif" width="60" height="20"></td>
          <td width="35"><img src="images/detail_cn.gif" width="60" height="20"></td>
        </tr>
      </table>
      </td>
   <tag:if test="${status.index%2==1 }">
    </tr>
   </tag:if>
    </tag:forEach>
  
搜索更多相关主题的帖子: style test 
2011-05-07 23:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-339131-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027046 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved