put the .jar file in the bin folder of tomcat and the .tld file in web-inf
folder.
in the web.xml file u have to specify what u want the uri to be like this
<taglib>
<taglib-uri>request</taglib-uri>
<taglib-location>/WEB-INF/request.tld</taglib-location>
</taglib>
and then u use that tag
<@ taglib uri=/WEB-INF/mytaglib.tld prefix=\"test\" %>
for more info. read the book by wrox.
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-3140
-----Original Message-----
From: Smita Kotnis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 7:14 PM
To: [EMAIL PROTECTED]
Subject: Taglib in Tomacat.
Hi All,
I need to use a taglib developed by third party in my JSPs. I have
one .jar and a .tld file with me. Where to put these files so that my tomcat
3.2 understands it? I tried following options,
1. Made a directory as tld under WEB-INF and tried to call it in my JSP as,
<@@ tag lib uri=/WEB-INF/mytaglib.tld prefix=\"test\" %>
(As described in a book by Hans )
2. Put that tld in some directory and gave class path pointing to that file.
Both of these ways failed. I am still getting the error that tag lib not
found !!
What is the exact way to use tag libs? Where to put these files? Thanks in
advance.
With best regards,
Smita
-------------------------------------------------
This mail helped a tree grow. Know more at http://green.sify.com
Take the shortest route to success!
Click here to know how http://education.sify.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com