facebook

Problems importing TaG-Libs

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #232828 Reply

    vanholy
    Member

    Hi,
    i have a problem tryng to use an External Tag Lib (eXtremeComponents, a sort of display Tag-lib http://extremecomponents.org/).

    The problem is that the jar needed must be in META-INF/lib directory.

    I go to:
    Project Properties –> java build path –> add Library Package Explorer
    where library contains my jar, then i sow it in myeclipse but when i deploy the application there is no trace of the jar in the META-INF/lib deployed on Tomcat.

    I tried also
    Project Properties –> java build path –> add External jars
    but no way the same problem.

    #232829

    vanholy
    Member

    Just now i solved the problem adding directly to my
    Eclipse META-INF/lib dir the jar that i needed!

    It is the right way?

    One more question about tag-libs. Specifications say that i must put in web.xml the tag-lib info as :
    <taglib>
    <taglib-uri>/tld/extremecomponents</taglib-uri>
    <taglib-location>/WEB-INF/tld/extremecomponents.tld</taglib-location>
    </taglib>

    but if i put this in my web.xml it the debugger give me an error , why?

    tnks 🙂

    #232831

    vanholy
    Member

    I post my web.xml for help in debug (using struts and myeclipse 4m2):

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>3</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>

    </servlet>

    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    <taglib> <— ERROR IS HERE
    <taglib-uri>/tld/extremecomponents</taglib-uri>
    <taglib-location>/WEB-INF/tld/extremecomponents.tld</taglib-location>
    </taglib>
    </web-app>

    #232845

    Riyad Kalla
    Member

    Did you meant your WEB-INF directory? You kept mentioning your META-INF/lib dir, but the JAR needs to be in your WEB-INF/lib dir.

    Also the error is because your web.xml file is invalid, you need to wrap your <taglib> entries in <jsp-config> tags, this is new in the web 2.4 spec.

    #232861

    vanholy
    Member

    oh no i was tired the dir is right, is the WEB-INF.

    However thank you because my problem was the wrapping with <jsp-config>

    bye

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problems importing TaG-Libs

You must be logged in to post in the forum log in