tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: tomcat problem
Date Thu, 08 Jan 2004 20:10:29 GMT
Since it looks like you've got some JSTL JAR files in your app, I'll assume
you're using TC 4.1. If you're not, let us know which version you are using.
Here's all you need in WEB-INF/lib:

jaxen-full.jar
jstl.jar
saxpath.jar
standard.jar
xtags.jar

The rest is provided by TC. Next, remove xtags.tld from WEB-INF and try a
Servlet 2.3 web.xml (remove the <taglib> entry):

<?xml version="1.0"?>

<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>xtags documentation</display-name>
  <description>
    HTML and Javadocs for the xtags JSP tag library.
  </description>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>xtags.html</welcome-file>
  </welcome-file-list>
</web-app>

Finally, in any JSP where you need to use XTags, include the following directive:

<%@ taglib prefix="xtags"
           uri="http://jakarta.apache.org/taglibs/xtags-1.0" %>

Quoting LDC - Claudia Evelyn Gonzalez Valiente <claudia@ldc.usb.ve>:

> 
> Hi!! I'm using xtags and I have a problem, when I put the jars in the 
> WEB-INF/lib/ directory, I get the following message:
> 
> HTTP Status 404 - /prueba.jsp
> 
> type Status report
> 
> message /prueba.jsp
> 
> description The requested resource (/prueba.jsp) is not available.
> 
> I can't find any file.
> 
> This is my web.xml:
> <?xml version="1.0"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
> 2.2//EN
> " "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
>     <display-name>xtags documentation</display-name>
>     <description>HTML and Javadocs for the xtags JSP tag 
> library.</description>
>       <welcome-file-list>
>       <welcome-file>index.jsp</welcome-file>
>       <welcome-file>index.html</welcome-file>
>       <welcome-file>xtags.html</welcome-file>
>     </welcome-file-list>
> 
>     <taglib>
>       <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
>       <taglib-location>xtags.tld</taglib-location>
>     </taglib>
> </web-app>
> 
> This file and xtags.tld are in the WEB-INF directory.
> 
> crimson.jar, dom.jar, jaxen-full.jar, jaxp-api.jar, jdbc2_0-stdext.jar, 
> jstl.jar, sax.jar, saxpath.jar, standard.jar, xalan.jar, xercesImpl.jar 
> and xtags.jar are in the WEB-INF/lib directory.
> 
> Can you help me please?
> 
> thanks
> Claudia
> 
>  -- 
> Claudia Evelyn Gonzalez Valiente (LDC)
> claudiagonzal85@hotmail.com
> cluditag@cantv.net
> claudia@ldc.usb.ve

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message