s:if在<s:iterator>中的使用

<s:iterator value="pagination" var="applyDatum" status="status">
            <tr>
              <td width="5%"><input type="checkbox" name="id" value="${id}" class="checkbox"><input type="hidden" name="datumname_${id }" value="${name}" /></td>
              <td style="text-align: left;"><s:property value="name" />
              <s:if test="#request.jcflag ==1">
	              <s:if test="#applyDatum.type ==1">
		              <s:if test="#applyDatum.samplepath ==null">
		                 	<img src="/images/yang.png" onMouseOut="layer.close(layer.index)" onMouseOver="layer.tips('样例为空', this);" />
		                </s:if>
	               </s:if>
	                <s:if test="#applyDatum.type ==2">
		              <s:if test="#applyDatum.samplepath ==null">
			              <s:if test="#applyDatum.ystablepath !=null">
			                 	<img src="/images/yang.png" onMouseOut="layer.close(layer.index)" onMouseOver="layer.tips('样例为空', this);" />
			               </s:if>
		                </s:if>
		                 <s:if test="#applyDatum.ystablepath ==null">
		                 	<s:if test="#applyDatum.samplepath !=null">
		                 		<img src="/images/yuan.png" onMouseOut="layer.close(layer.index)" onMouseOver="layer.tips('原始表格为空', this);" />
		               		 </s:if>
		                </s:if>
		                <s:if test="#applyDatum.samplepath ==null">
		                 	<s:if test="#applyDatum.ystablepath==null">
		                 		<img src="/images/yuan.png" onMouseOut="layer.close(layer.index)" onMouseOver="layer.tips('样例和原始表格都为空', this);" />
		                 		<img src="/images/yang.png" onMouseOut="layer.close(layer.index)" onMouseOver="layer.tips('样例和原始表格都为空', this);" />
		                	</s:if>
		                </s:if>
	               </s:if>
               </s:if>
              </td>
              <s:if test="crmCertdir==null">
              <td  width="12%">未关联</td>
              </s:if>
              <s:if test="crmCertdir!=null">
              <td  width="12%">已关联</td>
              </s:if>
             
              <s:if test="door!=3&&#parameters.type[0]==1"><!-- 非单位入口并类型、并查看所有申请材料 -->
             	 <td  width="12%">${tablepath==null?'否':'是'}</td>
              </s:if>
              <s:if test="#parameters.type[0]==2">
          	  <td width="12%" > 
          		<caporg:showorg value="${deptid}" propertyname="fullname"/> 
          	  </td>
          	</s:if>
              <td  width="15%">
	              <a href="javascript:;" class="operate" onClick="_mod(${id})">修改</a> 
	              <a href="javascript:;"	class="operate del" οnclick="_del(${id})">删除</a>
	             <s:if test="#applyDatum.tablepath!=null">
		             <a href="javascript:;" class="operate" onClick="mydatumpdf('${tablepath}');">表格预览</a> </td>
	             </s:if> 
            </tr>
          </s:iterator>



1、如果action中是request.setAttribute("ss","xiao"),那么s:if就要写成<s:if request="#request.ss=='xiaochao'"></s:if>

2、如果是在<s:iterator value="pagination" var="applyDatum" status="status">中遍历list,那么s:if就要<s:if request="#applyDatum.attrValue=='xiaochao'"></s:if>

<s:if test="%{#applyDatum.attrValue!=0}"></s:if>

作者:scgyus

转载请注明出处:http://blog.csdn.net/scgyus/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值