Designing JSP Custom Tag Libraries
Subject:   help trying tu run it
Date:   2003-10-29 14:59:34
From:   sspielman
Response to: help trying tu run it

The TLD file doesn't get compiled separately. The container uses it the way it is. It just needs to be in the WEB-INF directory.
Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • help trying tu run it
    2004-06-25 00:24:00  sjsobol [View]

    Specifically, the class file containing the tag library handler needs to go in WEB-INF/classes. (At least, that's right for Jetty, which is what I use. Should be the same for Tomcat.)
    • help trying tu run it
      2004-06-25 00:29:12  sjsobol [View]

      I forgot to add this...

      I use Apache to serve HTML/PHP. I am using Jetty to serve JSP files and servlets from the same directory as the HTML and PHP files. In my case, the example given by Sue required me to put the TLD file in the top directory of the website, not under WEB-INF. So it depends on what your specific setup is.
      • help trying to run it
        2004-06-29 18:00:41  jeepzy3 [View]

        I made the corrections posted by sjsobol, moved the TLD file to the top level(was previously getting an error as well), but still can't seem to get this to work.

        I am getting error:
        org.apache.jasper.JasperException: /hello.jsp(7,16) Unable to load class hello

        <%@ taglib uri="/oreillySample.tld" prefix="sample" %>
        <title>Your Standard Hello World Demo</title>
        <body bgcolor="#ffffff">
        <hr />
        <sample:hello name="Sue"/>
        <hr />

        Any ideas of what else I can check? -- thanks
        • help trying to run it
          2004-06-29 18:02:44  jeepzy3 [View]

          Forgot to mention... I am running jakarta-tomcat-4.1.27.