Examples of ChooseTag


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

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;

      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

Examples of com.caucho.jstl.ChooseTag

      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

Examples of com.caucho.jstl.ChooseTag

      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

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;

      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

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

Examples of org.apache.taglibs.standard.tag.common.core.ChooseTag

     * @throws IOException If the tag throws an IOException
     */
    public void testWhenTag()
        throws JspException, IOException
    {
        ChooseTag chooseTag = new ChooseTag();
        JspTagLifecycle chooseLifecycle =
            new JspTagLifecycle(pageContext, chooseTag);
       
        WhenTag whenTag = new WhenTag();
        JspTagLifecycle whenLifecycle =
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.core.ChooseTag

     * @throws IOException If the tag throws an IOException
     */
    public void testWhenTagNoPermission()
        throws JspException, IOException
    {
        ChooseTag chooseTag = new ChooseTag();
        JspTagLifecycle chooseLifecycle =
            new JspTagLifecycle(pageContext, chooseTag);
       
        WhenTag whenTag = new WhenTag();
        JspTagLifecycle whenLifecycle =
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.core.ChooseTag

     * @throws IOException If the tag throws an IOException
     */
    public void testWhenTag()
        throws JspException, IOException
    {
        ChooseTag chooseTag = new ChooseTag();
        JspTagLifecycle chooseLifecycle =
            new JspTagLifecycle(pageContext, chooseTag);
       
        WhenTag whenTag = new WhenTag();
        JspTagLifecycle whenLifecycle =
View Full Code Here

Examples of org.apache.taglibs.standard.tag.common.core.ChooseTag

     * @throws IOException If the tag throws an IOException
     */
    public void testWhenTagNoPermission()
        throws JspException, IOException
    {
        ChooseTag chooseTag = new ChooseTag();
        JspTagLifecycle chooseLifecycle =
            new JspTagLifecycle(pageContext, chooseTag);
       
        WhenTag whenTag = new WhenTag();
        JspTagLifecycle whenLifecycle =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.