Discussions

Web tier: servlets, JSP, Web frameworks: Problem in using custom Tag Library

  1. Problem in using custom Tag Library (2 messages)

    When I try to use a custom Tag Library from a JSP page, I get the following exception:

    javax.servlet.ServletException: (line 177): Non-matching extension tags //[ null; Line: 177]
            at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:
    265)

    In my jsp, iam using the taglib as
    <%@ taglib uri="/WEB-INF/treetag.tld" prefix="tree" %>

    Please help me in identifying the problem.
    Thanks in advance,
    Kusuma.
  2. hi,

    Based on the information given by you, there may be many possibilities why it is not working.

    Hence attached below are the links on tag lib descriptors and

    how to declare them in jsps...

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags6.html#wp90086

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro9.html#wp73319

    Hope this helps,

    Bhagvan K
    http://www.architectcorner.com
  3. Hi Kusuma:

    Is your problem fixed? I downloaded the same treetag from Jenkova's website and am having the same deployment problem. The TLD looks correct and the tag nesting looks right.

    Please let me know if you already figured out the problem.

    Thanks,
    -Milind.