zoukankan      html  css  js  c++  java
  • <s:iterator 标签的用法

    前提:后台传过来对象bottomGameServer,里面有id的属性,数据库中id对应阿拉伯数字,需要判断下。写法如下:

    <s:iterator value="#request.bottomGameServer" id="offset2">
         <li>
              <s:if test="#offset2.id==1 || #offset2.id==2 || #offset2.id==3">
                  <a href="${login_Game_Url}" class="default">[${game_AreaName}]${game_Server}</a>                                                          
                             </s:if> 
                             <s:else> 
                                 <a href="${login_Game_Url}" target="_blank" class="default">[${game_AreaName}]${game_Server}              </a>                                           
                             </s:else>  
         </li>
        </s:iterator>

    国泰民安
  • 相关阅读:
    设计模式 之 单例模式
    leetcode 69 x 的平方根 牛顿迭代法
    leetcode 98 验证二叉搜索树
    leetcode 54 螺旋数组
    第一篇-python入门
    python-入门
    python
    线性判别分析LDA总结
    LDA
    线性判别分析(LDA)原理
  • 原文地址:https://www.cnblogs.com/jirglt/p/2718339.html
Copyright © 2011-2022 走看看