<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/
02-21
1661
11-03
131