关闭

关于s:iterator 和s:if 的结合使用

标签: struts标签J2EEiteratorif
509人阅读 评论(0) 收藏 举报
分类:
<s:iterator value="UserList" id="UserList">
         <tr>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE1"><s:property value="index" /></span>           
           </div>
          </td>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center" class="STYLE1">
            <div align="center">
             <s:property value="business_name" />
            </div>
           </div>
          </td>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE1"><s:property value="user_name" /></span>
           </div>
          </td>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE1"><s:property value="user_pwd" /></span>
           </div>
          </td>
          <td bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE1">
             <s:if test ="%{#UserList.auth == 1}">
              系统管理员
             </s:if>
             <s:if test ="%{#UserList.auth == 2}">
              商务代表
             </s:if>
            </span>
           </div>
          </td>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE1">
             <s:if test ="%{#UserList.is_del == 0}">
              启用
             </s:if>
             <s:if test ="%{#UserList.is_del== 1}">
              停用
             </s:if>
            </span>
           </div>
          </td>
          <td height="20" bgcolor="#FFFFFF">
           <div align="center">
            <span class="STYLE4"><img src="tab/images/edt.gif"
              width="16" height="16" />编辑&nbsp; &nbsp;<img
              src="tab/images/del.gif" width="16" height="16" />停用</span>
           </div>
          </td>
         </tr>                                   
         </s:iterator>
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:179885次
    • 积分:2481
    • 等级:
    • 排名:第15436名
    • 原创:37篇
    • 转载:107篇
    • 译文:1篇
    • 评论:24条
    博客专栏
    文章分类
    最新评论