Package com.caucho.jstl

Examples of com.caucho.jstl.ChooseTag


    Tag parent = getParent();

    if (! (parent instanceof ChooseTag))
      throw new JspException(L.l("c:when tag must be contained in a c:choose tag."));

    ChooseTag chooseTag = (ChooseTag) parent;

    if (chooseTag.isMatch())
      return SKIP_BODY;

    if (_test) {
      chooseTag.setMatch();
     
      return EVAL_BODY_INCLUDE;
    }
    else
      return SKIP_BODY;
View Full Code Here


      Tag parent = getParent();

      if (! (parent instanceof ChooseTag))
        throw new JspException(L.l("c:when tag must be contained in a c:choose tag."));

      ChooseTag chooseTag = (ChooseTag) parent;

      if (chooseTag.isMatch())
        return SKIP_BODY;

      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      boolean test = _testExpr.evalBoolean(pageContext.getELContext());

      if (test) {
        chooseTag.setMatch();
     
        return EVAL_BODY_INCLUDE;
      }
      else
        return SKIP_BODY;
View Full Code Here

      Tag parent = getParent();

      if (! (parent instanceof ChooseTag))
        throw new JspException(L.l("x:when tag must be contained in a c:choose tag."));

      ChooseTag chooseTag = (ChooseTag) parent;

      if (chooseTag.isMatch())
        return SKIP_BODY;

      PageContextImpl pageContext = (PageContextImpl) this.pageContext;

      Env env = XPath.createEnv();
      env.setVarEnv(pageContext.getVarEnv());
     
      Node node = pageContext.getNodeEnv();
     
      boolean test = _select.evalBoolean(node, env);

      env.free();

      if (test) {
        chooseTag.setMatch();
     
        return EVAL_BODY_INCLUDE;
      }
      else
        return SKIP_BODY;
View Full Code Here

      Tag parent = getParent();

      if (! (parent instanceof ChooseTag))
        throw new JspException(L.l("x:when tag must be contained in a c:choose tag."));

      ChooseTag chooseTag = (ChooseTag) parent;

      if (chooseTag.isMatch())
        return SKIP_BODY;

      PageContextImpl pageContext = (PageContextImpl) this.pageContext;

      Env env = XPath.createEnv();
      env.setVarEnv(pageContext.getVarEnv());
     
      Node node = pageContext.getNodeEnv();
     
      boolean test = _select.evalBoolean(node, env);

      env.free();

      if (test) {
        chooseTag.setMatch();
     
        return EVAL_BODY_INCLUDE;
      }
      else
        return SKIP_BODY;
View Full Code Here

      Tag parent = getParent();

      if (! (parent instanceof ChooseTag))
  throw new JspException(L.l("c:when tag must be contained in a c:choose tag."));

      ChooseTag chooseTag = (ChooseTag) parent;

      if (chooseTag.isMatch())
  return SKIP_BODY;

      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      boolean test = _testExpr.evalBoolean(pageContext.getELContext());

      if (test) {
  chooseTag.setMatch();
     
  return EVAL_BODY_INCLUDE;
      }
      else
  return SKIP_BODY;
View Full Code Here

    Tag parent = getParent();

    if (! (parent instanceof ChooseTag))
      throw new JspException(L.l("c:when tag must be contained in a c:choose tag."));

    ChooseTag chooseTag = (ChooseTag) parent;

    if (chooseTag.isMatch())
      return SKIP_BODY;

    if (_test) {
      chooseTag.setMatch();
     
      return EVAL_BODY_INCLUDE;
    }
    else
      return SKIP_BODY;
View Full Code Here

TOP

Related Classes of com.caucho.jstl.ChooseTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.