zoukankan      html  css  js  c++  java
  • 标签

    <c:if test="${enterprise.type ne '5' && enterprise.type ne '7'}">
    ne 代表不等于和 != 等价,eq代表等于和 == 等价,&&是且的意思,||是或的意思。 大于号和小于号也是可以用的
    检查长度
    <c:if test="${fn:length(user.userName)>0}">
    这个null
    <c:if test="${position=='0' || position==null}">
    循环
    <c:forEach var="x" items="${groupList}" varStatus="name">
    <c:if test="${name.index%5==0}">
    <c:if test="${groupId eq x[0]}">
    上面的表达式用<s:if>改写
    <s:if test="enterprise.type != '5' && enterprise.type != '7' "> 
    如果这个报错,用这个
    <s:if test="#enterprise.type != '5' && #enterprise.type != '7' "> 
    另外取session和request里的内容
    <s:if test="#session.enterprise.password != null">
    <s:if test="#request.addrMatrl.failReason != null && #request.addrMatrl.failReason != ''">
    另外直接可以从后台传true或者false
    <s:if test="page.hasPre"> 

    在循环里这么用
    <s:iterator value="page.result"  id="obj" status="index" >
        <s:if test='#obj.getApplyOperator == null || #obj.getApplyOperator == "" ||  #obj.getApplyOperator == adminUser.id  || adminUser.name == "admin"'>    
    这样比较也行
    <s:if test=“#obj.getApplyOperator == adminUser.id” >       

  • 相关阅读:
    javascript window.Event对象
    sql 命令
    ASP.NET 2.0实现防止同一用户同时登陆
    设计模式(抽象工厂模式)
    javascript幻灯片
    javascript window.open
    c# 注册表操作
    大话英语
    oracle 插入、合并、查询、聚合操作
    guy,mistake
  • 原文地址:https://www.cnblogs.com/coolgame/p/9018204.html
Copyright © 2011-2022 走看看