Results 1 to 5 of 5
  1. #1
    srinivas1979 is offline Member
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Default The field IteratorTag.EVAL_BODY_AGAIN is ambiguous

    when migrating from JDK 1.3 to JDK 1.6,it's giving the following error.

    The field IteratorTag.EVAL_BODY_AGAIN is ambiguous.

    Please advice me how to proceed.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,253
    Rep Power
    25

    Default

    I'm not familiar with that. It sounds like a class is defined in more than one package.
    Can you post the full text of the error message.

  3. #3
    srinivas1979 is offline Member
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Default

    whatever I posted i.e.

    The field IteratorTag.EVAL_BODY_AGAIN is ambiguous. is the full error description only.

    I am psating code also here.


    public int doAfterBody() throws JspException {
    try {
    BodyContent body = getBodyContent();
    JspWriter out = body.getEnclosingWriter();

    out.print(body.getString());
    // System.out.println("IteratorTag.doAfterBody" + body.getString());
    body.clearBody();

    if (iter.hasNext()) {
    ++iterCount;
    // System.out.println("IteratorTag.doAfterBody: hasNext()");
    // Set attribute in the page context.
    Object element = iter.next();
    pageContext.setAttribute(id, element, PageContext.PAGE_SCOPE);
    if (iterCountName != null)
    pageContext.setAttribute(iterCountName, new Integer(iterCount));
    return IteratorTag.EVAL_BODY_AGAIN;
    } else {
    // System.out.println("IteratorTag.doAfterBody: skipping rest of body");
    release();

    return SKIP_BODY;
    }
    } catch (IOException ex) {
    ex.printStackTrace();
    throw new JspException(ex.getMessage());
    }
    }

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,253
    Rep Power
    25

    Default

    Can you post the full text of the error message.
    Where/how are you executing the program?

  5. #5
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,750
    Rep Power
    19

    Default

    Please use code tags so your code retains formatting. It's hard to read otherwise.

    What imports do you have for this?
    IteratorTag is a Struts thing isn't it?

Similar Threads

  1. Get Field value from form
    By johnven in forum Java Servlet
    Replies: 0
    Last Post: 03-10-2010, 07:34 AM
  2. Replies: 4
    Last Post: 01-17-2010, 11:13 PM
  3. Field type
    By code_worm in forum New To Java
    Replies: 15
    Last Post: 10-21-2009, 03:03 PM
  4. Regarding Text Field
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-05-2008, 11:01 PM
  5. Final field question
    By derrickD in forum Advanced Java
    Replies: 1
    Last Post: 04-28-2007, 10:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •