For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 2 voices, and was last updated 20 years, 5 months ago by
vanholy.
-
AuthorPosts
-
vanholyMemberHi,
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.July 12, 2005 at 6:11 pm #232829
vanholyMemberJust 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 🙂
July 12, 2005 at 6:15 pm #232831
vanholyMemberI 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” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<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>July 12, 2005 at 10:31 pm #232845
Riyad KallaMemberDid 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.
July 13, 2005 at 3:32 am #232861
vanholyMemberoh 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
-
AuthorPosts
