org.apache.taglibs.standard.tag.common.core.WhenTagSupport类的使用及代码示例

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

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

WhenTagSupport介绍

[英]WhenTagSupport is an abstract class that facilitates implementation of <when>-style tags in both the rtexprvalue and expression-evaluating libraries. It also supports <otherwise>.

In particular, this base class does the following:

  • overrides ConditionalTagSupport.doStartTag() to implement the appropriate semantics of subtags of <choose>
    [中]WhenTagSupport是一个抽象类,它有助于在rtexprvalue和表达式评估库中实现<when>样式的标记。它还支持<否则>。
    特别是,该基类执行以下操作:
    *覆盖条件AltagSupport。doStartTag()来实现<choose>

代码示例

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

  1. @Override
  2. public void release() {
  3. super.release();
  4. select = null;
  5. }

代码示例来源: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: org.jboss.spec.javax.servlet.jstl/jboss-jstl-api_1.2_spec

  1. @Override
  2. public void release() {
  3. super.release();
  4. select = null;
  5. }

代码示例来源: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.apache.taglibs/taglibs-standard-compat

  1. @Override
  2. public void release() {
  3. testExpression = null;
  4. super.release();
  5. }

代码示例来源: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.glassfish.web/jstl-impl

  1. public void release() {
  2. super.release();
  3. init();
  4. }

代码示例来源: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.glassfish.web/jstl-impl

  1. public void release() {
  2. super.release();
  3. init();
  4. }

代码示例来源: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/com.springsource.org.apache.taglibs.standard

  1. public void release() {
  2. super.release();
  3. init();
  4. }

代码示例来源: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.bluestemsoftware.open.maven.tparty/jsp-api-2.1

  1. public void release() {
  2. super.release();
  3. init();
  4. }

代码示例来源: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. }

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

  1. public void release() {
  2. super.release();
  3. init();
  4. }

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

  1. public void release() {
  2. super.release();
  3. init();
  4. }

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

  1. public void release() {
  2. super.release();
  3. init();
  4. }

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

  1. public void release() {
  2. super.release();
  3. init();
  4. }

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

  1. public void release() {
  2. super.release();
  3. init();
  4. }

相关文章