org.apache.taglibs.standard.tag.common.core.WhenTagSupport.condition()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.apache.taglibs.standard.tag.common.core.WhenTagSupport.condition()方法的一些代码示例,展示了WhenTagSupport.condition()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WhenTagSupport.condition()方法的具体详情如下:
包路径:org.apache.taglibs.standard.tag.common.core.WhenTagSupport
类名称:WhenTagSupport
方法名:condition

WhenTagSupport.condition介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.web/jstl-impl

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: org.glassfish.web/javax.servlet.jsp.jstl

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: javax.servlet/com.springsource.javax.servlet.jsp.jstl

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.taglibs.standard.glassfish

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-api-2.1

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: org.apache.taglibs/com.springsource.org.apache.taglibs.standard

public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag))
      throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission())
      return SKIP_BODY;                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else
      return SKIP_BODY;
  }
}

代码示例来源:origin: org.apache.taglibs/taglibs-standard-impl

@Override
  public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag)) {
      throw new JspTagException(
          Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
    }

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission()) {
      return SKIP_BODY;
    }                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else {
      return SKIP_BODY;
    }
  }
}

代码示例来源:origin: org.jboss.spec.javax.servlet.jstl/jboss-jstl-api_1.2_spec

@Override
  public int doStartTag() throws JspException {

    Tag parent;

    // make sure we're contained properly
    if (!((parent = getParent()) instanceof ChooseTag)) {
      throw new JspTagException(
          Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
    }

    // make sure our parent wants us to continue
    if (!((ChooseTag) parent).gainPermission()) {
      return SKIP_BODY;
    }                   // we've been reeled in

    // handle conditional behavior
    if (condition()) {
      ((ChooseTag) parent).subtagSucceeded();
      return EVAL_BODY_INCLUDE;
    } else {
      return SKIP_BODY;
    }
  }
}

相关文章