I haven't hear from anyone but I figured out what was wrong. It appears that
the constant EVAL_BODY_TAG was a 2 when I used jdk1.2.2 compiler and
EVAL_BODY_TAG was a 4 when Orion compiled up the JSP. So to quickly fix the
problem, I return 4 stead of EVAL_BODY_TAG. However, I want to fix the
problem at the source and don't know the internal of Orion so here is my
asking for help again. Anyone knows where Orion keeps the library and is it
possible for me to replace it with the one from jdk 1.2.2? if not, what else
should I do?

Tung

-----Original Message-----
From: Tung Bui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 4:37 PM
To: [EMAIL PROTECTED]
Subject: Custom Tag Expert please help


Ok, I'm implementing a ForEach tag which just looping throw a list of
content. The problem I have right now is that for what ever I do, I cannot
get the doAfterBody executed. It could not be executed even when I hardcoded
the doStartTag to return EVAL_BODY_TAG. What's give?

I'm using the Orion Server version 0.9.4 and jdk 1.2.2. Here is the
doStartTag's code:

public int doStartTag() throws JspException
  {
    result = (linkGroups) pageContext.getAttribute(inResult);
    if (result == null) {
      throw new JspException("Could not get the " + inResult);
    }
    try {
      if (result.nextGroup()) {
        pageContext.setAttribute(name, result);
        return EVAL_BODY_TAG;
      }
    } catch (SQLException e) {
      throw new JspException(e.getMessage());
    }
    return SKIP_BODY;
  }

Any suggestion is very appreciated.
Tung

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to