1 Reply Latest reply on Jul 25, 2002 5:02 PM by Eric Hansen

    Struts <taglib> file not found

    Eric Hansen Newbie

      I'm new to JBoss and I'm trying to get my Web Application (that runs well on Tomcat 4.0.x standalone) to work in JBoss-Tomcat...

      I'm using some Struts tags such as struts-html, struts-logic, etc... but I'm getting an error when the jsp page tries to compile
      [ org.apache.jasper.JasperException: File "/WEB-INF/tlds/struts-html.tld" not found ]

      It seems the jsp page is literally looking for the path called out in the taglib uri rather that using the web.xml file to map that uri to a physical file location...

      In the jsp file...
      <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>

      The taglib is described in the web.xml file as follows:

      <taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>


      I've verified file locations (inside the war file):
      /WEB-INF/struts-html.tld
      /WEB-INF/lib/struts.jar
      /WEB-INF/web.xml

      What am I doing wrong???

      Thanks for any help!
      Eric-


        • 1. Re: Struts <taglib> file not found
          Eric Hansen Newbie

          In case my uri (being a file path) was confusing JBoss, I changed it:
          <%@ taglib uri="/struts-html" prefix="html" %>

          and the web.xml descriptor...

          <taglib-uri>/struts-html</taglib-uri>
          <taglib-location>/WEB-INF/struts-html.tld</taglib-location>


          and receive the following Exception report...

          org.apache.jasper.JasperException: File "/struts-html" not found

          So still the same problem!!