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

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

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

WhenTagSupport.getParent介绍

暂无

代码示例

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. public int doStartTag() throws JspException {
  2. Tag parent;
  3. // make sure we're contained properly
  4. if (!((parent = getParent()) instanceof ChooseTag))
  5. throw new JspTagException(
  6. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  7. // make sure our parent wants us to continue
  8. if (!((ChooseTag) parent).gainPermission())
  9. return SKIP_BODY; // we've been reeled in
  10. // handle conditional behavior
  11. if (condition()) {
  12. ((ChooseTag) parent).subtagSucceeded();
  13. return EVAL_BODY_INCLUDE;
  14. } else
  15. return SKIP_BODY;
  16. }
  17. }

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

  1. @Override
  2. public int doStartTag() throws JspException {
  3. Tag parent;
  4. // make sure we're contained properly
  5. if (!((parent = getParent()) instanceof ChooseTag)) {
  6. throw new JspTagException(
  7. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  8. }
  9. // make sure our parent wants us to continue
  10. if (!((ChooseTag) parent).gainPermission()) {
  11. return SKIP_BODY;
  12. } // we've been reeled in
  13. // handle conditional behavior
  14. if (condition()) {
  15. ((ChooseTag) parent).subtagSucceeded();
  16. return EVAL_BODY_INCLUDE;
  17. } else {
  18. return SKIP_BODY;
  19. }
  20. }
  21. }

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

  1. @Override
  2. public int doStartTag() throws JspException {
  3. Tag parent;
  4. // make sure we're contained properly
  5. if (!((parent = getParent()) instanceof ChooseTag)) {
  6. throw new JspTagException(
  7. Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
  8. }
  9. // make sure our parent wants us to continue
  10. if (!((ChooseTag) parent).gainPermission()) {
  11. return SKIP_BODY;
  12. } // we've been reeled in
  13. // handle conditional behavior
  14. if (condition()) {
  15. ((ChooseTag) parent).subtagSucceeded();
  16. return EVAL_BODY_INCLUDE;
  17. } else {
  18. return SKIP_BODY;
  19. }
  20. }
  21. }

相关文章